Definition at line 26 of file ConfigCollectionTest.php.
◆ testConstruct()
ILIAS\Tests\Setup\ConfigCollectionTest::testConstruct |
( |
| ) |
|
Definition at line 30 of file ConfigCollectionTest.php.
References $c.
32 $c1 = $this->newConfig();
33 $c2 = $this->newConfig();
34 $c3 = $this->newConfig();
36 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2,
"c3" => $c3]);
38 $this->assertInstanceOf(Setup\Config::class,
$c);
◆ testGetConfig()
ILIAS\Tests\Setup\ConfigCollectionTest::testGetConfig |
( |
| ) |
|
Definition at line 41 of file ConfigCollectionTest.php.
References $c.
43 $c1 = $this->newConfig();
44 $c2 = $this->newConfig();
45 $c3 = $this->newConfig();
47 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2,
"c3" => $c3]);
49 $this->assertEquals($c1,
$c->getConfig(
"c1"));
50 $this->assertEquals($c2,
$c->getConfig(
"c2"));
51 $this->assertEquals($c3,
$c->getConfig(
"c3"));
◆ testGetKeys()
ILIAS\Tests\Setup\ConfigCollectionTest::testGetKeys |
( |
| ) |
|
Definition at line 54 of file ConfigCollectionTest.php.
References $c.
56 $c1 = $this->newConfig();
57 $c2 = $this->newConfig();
58 $c3 = $this->newConfig();
60 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2,
"c3" => $c3]);
62 $this->assertEquals([
"c1",
"c2",
"c3"],
$c->getKeys());
◆ testMaybeGetConfig()
ILIAS\Tests\Setup\ConfigCollectionTest::testMaybeGetConfig |
( |
| ) |
|
Definition at line 65 of file ConfigCollectionTest.php.
References $c.
67 $c1 = $this->newConfig();
68 $c2 = $this->newConfig();
69 $c3 = $this->newConfig();
71 $c =
new Setup\ConfigCollection([
"c1" => $c1,
"c2" => $c2]);
73 $this->assertEquals($c1,
$c->maybeGetConfig(
"c1"));
74 $this->assertEquals($c2,
$c->maybeGetConfig(
"c2"));
75 $this->assertEquals(null,
$c->maybeGetConfig(
"c3"));
The documentation for this class was generated from the following file: