Definition at line 26 of file ConfigCollectionTest.php.
◆ testConstruct()
| ILIAS\Tests\Setup\ConfigCollectionTest::testConstruct |
( |
| ) |
|
Definition at line 30 of file ConfigCollectionTest.php.
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 }
References $c.
◆ testGetConfig()
| ILIAS\Tests\Setup\ConfigCollectionTest::testGetConfig |
( |
| ) |
|
Definition at line 41 of file ConfigCollectionTest.php.
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 }
References $c.
◆ testGetKeys()
| ILIAS\Tests\Setup\ConfigCollectionTest::testGetKeys |
( |
| ) |
|
Definition at line 54 of file ConfigCollectionTest.php.
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 }
References $c.
◆ testMaybeGetConfig()
| ILIAS\Tests\Setup\ConfigCollectionTest::testMaybeGetConfig |
( |
| ) |
|
Definition at line 65 of file ConfigCollectionTest.php.
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 }
References $c.
The documentation for this class was generated from the following file: