ILIAS  release_7 Revision v7.30-3-g800a261c036
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 10 of file ConfigCollectionTest.php.

Member Function Documentation

◆ testConstruct()

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

Definition at line 14 of file ConfigCollectionTest.php.

References $c.

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

◆ testGetConfig()

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

Definition at line 25 of file ConfigCollectionTest.php.

References $c.

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

◆ testGetKeys()

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

Definition at line 38 of file ConfigCollectionTest.php.

References $c.

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

◆ testMaybeGetConfig()

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

Definition at line 49 of file ConfigCollectionTest.php.

References $c.

49  : void
50  {
51  $c1 = $this->newConfig();
52  $c2 = $this->newConfig();
53  $c3 = $this->newConfig();
54 
55  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2]);
56 
57  $this->assertEquals($c1, $c->maybeGetConfig("c1"));
58  $this->assertEquals($c2, $c->maybeGetConfig("c2"));
59  $this->assertEquals(null, $c->maybeGetConfig("c3"));
60  }
$c
Definition: cli.php:37

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