Definition at line 10 of file ConfigCollectionTest.php.
◆ testConstruct()
ILIAS\Tests\Setup\ConfigCollectionTest::testConstruct |
( |
| ) |
|
Definition at line 14 of file ConfigCollectionTest.php.
References $c.
16 $c1 = $this->newConfig();
17 $c2 = $this->newConfig();
18 $c3 = $this->newConfig();
20 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2,
"c3" => $c3]);
22 $this->assertInstanceOf(Setup\Config::class,
$c);
◆ testGetConfig()
ILIAS\Tests\Setup\ConfigCollectionTest::testGetConfig |
( |
| ) |
|
Definition at line 25 of file ConfigCollectionTest.php.
References $c.
27 $c1 = $this->newConfig();
28 $c2 = $this->newConfig();
29 $c3 = $this->newConfig();
31 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2,
"c3" => $c3]);
33 $this->assertEquals($c1,
$c->getConfig(
"c1"));
34 $this->assertEquals($c2,
$c->getConfig(
"c2"));
35 $this->assertEquals($c3,
$c->getConfig(
"c3"));
◆ testGetKeys()
ILIAS\Tests\Setup\ConfigCollectionTest::testGetKeys |
( |
| ) |
|
Definition at line 38 of file ConfigCollectionTest.php.
References $c.
40 $c1 = $this->newConfig();
41 $c2 = $this->newConfig();
42 $c3 = $this->newConfig();
44 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2,
"c3" => $c3]);
46 $this->assertEquals([
"c1",
"c2",
"c3"],
$c->getKeys());
◆ testMaybeGetConfig()
ILIAS\Tests\Setup\ConfigCollectionTest::testMaybeGetConfig |
( |
| ) |
|
Definition at line 49 of file ConfigCollectionTest.php.
References $c.
51 $c1 = $this->newConfig();
52 $c2 = $this->newConfig();
53 $c3 = $this->newConfig();
55 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2]);
57 $this->assertEquals($c1,
$c->maybeGetConfig(
"c1"));
58 $this->assertEquals($c2,
$c->maybeGetConfig(
"c2"));
59 $this->assertEquals(null,
$c->maybeGetConfig(
"c3"));
The documentation for this class was generated from the following file: