ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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 28 of file ConfigCollectionTest.php.

Member Function Documentation

◆ testConstruct()

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

Definition at line 32 of file ConfigCollectionTest.php.

References $c.

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

◆ testGetConfig()

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

Definition at line 43 of file ConfigCollectionTest.php.

References $c.

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

◆ testGetKeys()

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

Definition at line 56 of file ConfigCollectionTest.php.

References $c.

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

◆ testMaybeGetConfig()

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

Definition at line 67 of file ConfigCollectionTest.php.

References $c, and null.

67  : void
68  {
69  $c1 = $this->newConfig();
70  $c2 = $this->newConfig();
71  $c3 = $this->newConfig();
72 
73  $c = new Setup\ConfigCollection(["c1" => $c1, "c2" => $c2]);
74 
75  $this->assertEquals($c1, $c->maybeGetConfig("c1"));
76  $this->assertEquals($c2, $c->maybeGetConfig("c2"));
77  $this->assertEquals(null, $c->maybeGetConfig("c3"));
78  }
$c
Definition: deliver.php:25
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null

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