ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 

Detailed Description

Definition at line 9 of file ConfigCollectionTest.php.

Member Function Documentation

◆ testConstruct()

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

Definition at line 13 of file ConfigCollectionTest.php.

References Vendor\Package\$c.

14  {
15  $c1 = $this->newConfig();
16  $c2 = $this->newConfig();
17  $c3 = $this->newConfig();
18 
19  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2, "c3" => $c3]);
20 
21  $this->assertInstanceOf(Setup\Config::class, $c);
22  }

◆ testGetConfig()

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

Definition at line 24 of file ConfigCollectionTest.php.

References Vendor\Package\$c.

25  {
26  $c1 = $this->newConfig();
27  $c2 = $this->newConfig();
28  $c3 = $this->newConfig();
29 
30  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2, "c3" => $c3]);
31 
32  $this->assertEquals($c1, $c->getConfig("c1"));
33  $this->assertEquals($c2, $c->getConfig("c2"));
34  $this->assertEquals($c3, $c->getConfig("c3"));
35  }

◆ testGetKeys()

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

Definition at line 37 of file ConfigCollectionTest.php.

References Vendor\Package\$c.

38  {
39  $c1 = $this->newConfig();
40  $c2 = $this->newConfig();
41  $c3 = $this->newConfig();
42 
43  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2, "c3" => $c3]);
44 
45  $this->assertEquals(["c1", "c2", "c3"], $c->getKeys());
46  }

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