ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilRegistrationSettingsTest Class Reference
+ Inheritance diagram for ilRegistrationSettingsTest:
+ Collaboration diagram for ilRegistrationSettingsTest:

Protected Member Functions

 setUp ()
 
 setGlobalVariable (string $name, $value)
 
 initDependencies ()
 

Protected Attributes

Container $dic
 

Detailed Description

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om

Definition at line 27 of file ilRegistrationSettingsTest.php.

Member Function Documentation

◆ initDependencies()

ilRegistrationSettingsTest::initDependencies ( )
protected

Definition at line 66 of file ilRegistrationSettingsTest.php.

References $dic, $GLOBALS, and setGlobalVariable().

Referenced by setUp().

66  : void
67  {
68  $this->dic = new Container();
69  $GLOBALS['DIC'] = $this->dic;
70 
71  $this->setGlobalVariable('ilDB', $this->createMock(ilDBInterface::class));
72  $this->setGlobalVariable('ilSetting', $this->createMock(ilSetting::class));
73  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setGlobalVariable()

ilRegistrationSettingsTest::setGlobalVariable ( string  $name,
  $value 
)
protected

Definition at line 55 of file ilRegistrationSettingsTest.php.

References $c, $DIC, $GLOBALS, and $name.

Referenced by initDependencies().

55  : void
56  {
57  global $DIC;
58 
59  $GLOBALS[$name] = $value;
60  unset($DIC[$name]);
61  $DIC[$name] = static function (Container $c) use ($value) {
62  return $value;
63  };
64  }
$c
Definition: cli.php:38
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
global $DIC
Definition: feed.php:28
if($format !==null) $name
Definition: metadata.php:247
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Definition: PEAR.php:64
+ Here is the caller graph for this function:

◆ setUp()

ilRegistrationSettingsTest::setUp ( )
protected

Definition at line 31 of file ilRegistrationSettingsTest.php.

References $DIC, $ilSetting, ILIAS\LTI\ToolProvider\$settings, and initDependencies().

31  : void
32  {
33  $this->initDependencies();
34  parent::setUp();
35  }
+ Here is the call graph for this function:

Field Documentation

◆ $dic

Container ilRegistrationSettingsTest::$dic
protected

Definition at line 29 of file ilRegistrationSettingsTest.php.

Referenced by initDependencies().


The documentation for this class was generated from the following file: