ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
CategoryReferenceTest Class Reference

Test clipboard repository. More...

+ Inheritance diagram for CategoryReferenceTest:
+ Collaboration diagram for CategoryReferenceTest:

Public Member Functions

 testCommands ()
 Test commands. More...
 

Protected Member Functions

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

Detailed Description

Test clipboard repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 28 of file CategoryReferenceTest.php.

Member Function Documentation

◆ setGlobalVariable()

CategoryReferenceTest::setGlobalVariable ( string  $name,
  $value 
)
protected
Parameters
string$name
mixed$value

Definition at line 52 of file CategoryReferenceTest.php.

52 : void
53 {
54 global $DIC;
55
56 $GLOBALS[$name] = $value;
57
58 unset($DIC[$name]);
59 $DIC[$name] = static function (\ILIAS\DI\Container $c) use ($value) {
60 return $value;
61 };
62 }
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:36
$c
Definition: deliver.php:25
global $DIC
Definition: shib_login.php:26
$GLOBALS["DIC"]
Definition: wac.php:54

References $c, $DIC, and $GLOBALS.

Referenced by setUp().

+ Here is the caller graph for this function:

◆ setUp()

CategoryReferenceTest::setUp ( )
protected

Definition at line 30 of file CategoryReferenceTest.php.

30 : void
31 {
33 $GLOBALS['DIC'] = $dic;
34
35 parent::setUp();
36
37 $this->setGlobalVariable(
38 "ilAccess",
39 $this->createConfiguredMock(
40 ilAccess::class,
41 [
42 "checkAccess" => true
43 ]
44 )
45 );
46 }
setGlobalVariable(string $name, $value)
$dic
Definition: ltiresult.php:33

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

+ Here is the call graph for this function:

◆ tearDown()

CategoryReferenceTest::tearDown ( )
protected

Definition at line 64 of file CategoryReferenceTest.php.

64 : void
65 {
66 }

◆ testCommands()

CategoryReferenceTest::testCommands ( )

Test commands.

Definition at line 71 of file CategoryReferenceTest.php.

71 : void
72 {
74 $this->assertIsArray($commands);
75 }
static _getCommands()
get commands

References ilObjectAccess\_getCommands().

+ Here is the call graph for this function:

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