ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilCertificateBaseTestCase Class Reference

Class ilCertificateBaseTestCase. More...

+ Inheritance diagram for ilCertificateBaseTestCase:
+ Collaboration diagram for ilCertificateBaseTestCase:

Protected Member Functions

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

Detailed Description

Member Function Documentation

◆ setGlobalVariable()

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

Definition at line 46 of file ilCertificateBaseTestCase.php.

References Vendor\Package\$c, $DIC, and $GLOBALS.

Referenced by ilCoursePlaceholderValuesTest\testGetPlaceholderValues(), and ilCoursePlaceholderValuesTest\testGetPreviewPlaceholderValues().

46  : void
47  {
48  global $DIC;
49 
50  $GLOBALS[$name] = $value;
51 
52  unset($DIC[$name]);
53  $DIC[$name] = static function (Container $c) use ($name) {
54  return $GLOBALS[$name];
55  };
56  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28
$GLOBALS["DIC"]
Definition: wac.php:31
+ Here is the caller graph for this function:

◆ setUp()

ilCertificateBaseTestCase::setUp ( )
protected

Definition at line 31 of file ilCertificateBaseTestCase.php.

References $DIC.

31  : void
32  {
33  if (!defined('ANONYMOUS_USER_ID')) {
34  define('ANONYMOUS_USER_ID', 13);
35  }
36 
37  global $DIC;
38 
39  $this->dic = is_object($DIC) ? clone $DIC : $DIC;
40 
41  $DIC = new Container();
42 
43  parent::setUp();
44  }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:35
global $DIC
Definition: feed.php:28

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