Definition at line 21 of file ilComponentInfoTest.php.
◆ setUp()
ilComponentInfoTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 27 of file ilComponentInfoTest.php.
References $pluginslot1, and $pluginslot2.
Simple value class for basic information about a pluginslot.
ilPluginSlotInfo $pluginslot1
ilPluginSlotInfo $pluginslot2
Simple value class for basic information about a component.
◆ testGetPluginSlotById()
ilComponentInfoTest::testGetPluginSlotById |
( |
| ) |
|
Definition at line 93 of file ilComponentInfoTest.php.
96 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt1",
"Slot1", $plugins), $this->component->getPluginSlotById(
"slt1"));
97 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt2",
"Slot2", $plugins), $this->component->getPluginSlotById(
"slt2"));
Simple value class for basic information about a pluginslot.
◆ testGetPluginSlotByName()
ilComponentInfoTest::testGetPluginSlotByName |
( |
| ) |
|
Definition at line 119 of file ilComponentInfoTest.php.
122 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt1",
"Slot1", $plugins), $this->component->getPluginSlotByName(
"Slot1"));
123 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt2",
"Slot2", $plugins), $this->component->getPluginSlotByName(
"Slot2"));
Simple value class for basic information about a pluginslot.
◆ testGetPluginsSlots()
ilComponentInfoTest::testGetPluginsSlots |
( |
| ) |
|
Definition at line 77 of file ilComponentInfoTest.php.
79 $pluginslots = iterator_to_array($this->component->getPluginSlots());
81 $this->assertCount(2, $pluginslots);
82 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt1",
"Slot1", $plugins), $pluginslots[
"slt1"]);
83 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt2",
"Slot2", $plugins), $pluginslots[
"slt2"]);
Simple value class for basic information about a pluginslot.
◆ testGetter()
ilComponentInfoTest::testGetter |
( |
| ) |
|
Definition at line 57 of file ilComponentInfoTest.php.
59 $this->assertEquals(
"mod1", $this->component->getId());
60 $this->assertEquals(
"components/ILIAS", $this->component->getType());
61 $this->assertEquals(
"Module1", $this->component->getName());
62 $this->assertEquals(
"components/ILIAS/Module1", $this->component->getQualifiedName());
◆ testGetUnknownPluginSlot()
ilComponentInfoTest::testGetUnknownPluginSlot |
( |
| ) |
|
Definition at line 106 of file ilComponentInfoTest.php.
108 $this->expectException(\InvalidArgumentException::class);
109 $this->component->getPluginSlotById(
"slt3");
◆ testGetUnknownPluginSlotById()
ilComponentInfoTest::testGetUnknownPluginSlotById |
( |
| ) |
|
Definition at line 100 of file ilComponentInfoTest.php.
102 $this->expectException(\InvalidArgumentException::class);
103 $this->component->getPluginSlotById(
"slt3");
◆ testGetUnknownPluginSlotByName()
ilComponentInfoTest::testGetUnknownPluginSlotByName |
( |
| ) |
|
Definition at line 126 of file ilComponentInfoTest.php.
128 $this->expectException(\InvalidArgumentException::class);
129 $this->component->getPluginSlotById(
"Slot3");
◆ testHasPluginSlotId()
ilComponentInfoTest::testHasPluginSlotId |
( |
| ) |
|
Definition at line 86 of file ilComponentInfoTest.php.
88 $this->assertTrue($this->component->hasPluginSlotId(
"slt1"));
89 $this->assertTrue($this->component->hasPluginSlotId(
"slt2"));
90 $this->assertFalse($this->component->hasPluginSlotId(
"slt3"));
◆ testHasPluginSlotName()
ilComponentInfoTest::testHasPluginSlotName |
( |
| ) |
|
Definition at line 112 of file ilComponentInfoTest.php.
114 $this->assertTrue($this->component->hasPluginSlotName(
"Slot1"));
115 $this->assertTrue($this->component->hasPluginSlotName(
"Slot2"));
116 $this->assertFalse($this->component->hasPluginSlotName(
"Slot3"));
◆ testInvalidTypeThrowsException()
ilComponentInfoTest::testInvalidTypeThrowsException |
( |
| ) |
|
Definition at line 65 of file ilComponentInfoTest.php.
67 $this->expectException(\InvalidArgumentException::class);
Simple value class for basic information about a component.
◆ $component
◆ $pluginslot1
◆ $pluginslot2
The documentation for this class was generated from the following file: