ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Tests\Setup\ConfigCollectionTest Class Reference
+ Inheritance diagram for ILIAS\Tests\Setup\ConfigCollectionTest:
+ Collaboration diagram for ILIAS\Tests\Setup\ConfigCollectionTest:

Public Member Functions

 testConstruct ()
 
 testGetConfig ()
 
 testGetKeys ()
 
 testMaybeGetConfig ()
 

Detailed Description

Definition at line 26 of file ConfigCollectionTest.php.

Member Function Documentation

◆ testConstruct()

ILIAS\Tests\Setup\ConfigCollectionTest::testConstruct ( )

Definition at line 30 of file ConfigCollectionTest.php.

References $c.

30  : void
31  {
32  $c1 = $this->newConfig();
33  $c2 = $this->newConfig();
34  $c3 = $this->newConfig();
35 
36  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2, "c3" => $c3]);
37 
38  $this->assertInstanceOf(Setup\Config::class, $c);
39  }
$c
Definition: cli.php:38

◆ testGetConfig()

ILIAS\Tests\Setup\ConfigCollectionTest::testGetConfig ( )

Definition at line 41 of file ConfigCollectionTest.php.

References $c.

41  : void
42  {
43  $c1 = $this->newConfig();
44  $c2 = $this->newConfig();
45  $c3 = $this->newConfig();
46 
47  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2, "c3" => $c3]);
48 
49  $this->assertEquals($c1, $c->getConfig("c1"));
50  $this->assertEquals($c2, $c->getConfig("c2"));
51  $this->assertEquals($c3, $c->getConfig("c3"));
52  }
$c
Definition: cli.php:38

◆ testGetKeys()

ILIAS\Tests\Setup\ConfigCollectionTest::testGetKeys ( )

Definition at line 54 of file ConfigCollectionTest.php.

References $c.

54  : void
55  {
56  $c1 = $this->newConfig();
57  $c2 = $this->newConfig();
58  $c3 = $this->newConfig();
59 
60  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2, "c3" => $c3]);
61 
62  $this->assertEquals(["c1", "c2", "c3"], $c->getKeys());
63  }
$c
Definition: cli.php:38

◆ testMaybeGetConfig()

ILIAS\Tests\Setup\ConfigCollectionTest::testMaybeGetConfig ( )

Definition at line 65 of file ConfigCollectionTest.php.

References $c.

65  : void
66  {
67  $c1 = $this->newConfig();
68  $c2 = $this->newConfig();
69  $c3 = $this->newConfig();
70 
71  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2]);
72 
73  $this->assertEquals($c1, $c->maybeGetConfig("c1"));
74  $this->assertEquals($c2, $c->maybeGetConfig("c2"));
75  $this->assertEquals(null, $c->maybeGetConfig("c3"));
76  }
$c
Definition: cli.php:38

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