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