Definition at line 22 of file ilComponentInfoTest.php.
◆ setUp()
| ilComponentInfoTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 28 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 94 of file ilComponentInfoTest.php.
97 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt1",
"Slot1", $plugins), $this->component->getPluginSlotById(
"slt1"));
98 $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 120 of file ilComponentInfoTest.php.
123 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt1",
"Slot1", $plugins), $this->component->getPluginSlotByName(
"Slot1"));
124 $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 78 of file ilComponentInfoTest.php.
80 $pluginslots = iterator_to_array($this->component->getPluginSlots());
82 $this->assertCount(2, $pluginslots);
83 $this->assertEquals(
new ilPluginSlotInfo($this->component,
"slt1",
"Slot1", $plugins), $pluginslots[
"slt1"]);
84 $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 58 of file ilComponentInfoTest.php.
60 $this->assertEquals(
"mod1", $this->component->getId());
61 $this->assertEquals(
"components/ILIAS", $this->component->getType());
62 $this->assertEquals(
"Module1", $this->component->getName());
63 $this->assertEquals(
"components/ILIAS/Module1", $this->component->getQualifiedName());
◆ testGetUnknownPluginSlot()
| ilComponentInfoTest::testGetUnknownPluginSlot |
( |
| ) |
|
Definition at line 107 of file ilComponentInfoTest.php.
109 $this->expectException(\InvalidArgumentException::class);
110 $this->component->getPluginSlotById(
"slt3");
◆ testGetUnknownPluginSlotById()
| ilComponentInfoTest::testGetUnknownPluginSlotById |
( |
| ) |
|
Definition at line 101 of file ilComponentInfoTest.php.
103 $this->expectException(\InvalidArgumentException::class);
104 $this->component->getPluginSlotById(
"slt3");
◆ testGetUnknownPluginSlotByName()
| ilComponentInfoTest::testGetUnknownPluginSlotByName |
( |
| ) |
|
Definition at line 127 of file ilComponentInfoTest.php.
129 $this->expectException(\InvalidArgumentException::class);
130 $this->component->getPluginSlotById(
"Slot3");
◆ testHasPluginSlotId()
| ilComponentInfoTest::testHasPluginSlotId |
( |
| ) |
|
Definition at line 87 of file ilComponentInfoTest.php.
89 $this->assertTrue($this->component->hasPluginSlotId(
"slt1"));
90 $this->assertTrue($this->component->hasPluginSlotId(
"slt2"));
91 $this->assertFalse($this->component->hasPluginSlotId(
"slt3"));
◆ testHasPluginSlotName()
| ilComponentInfoTest::testHasPluginSlotName |
( |
| ) |
|
Definition at line 113 of file ilComponentInfoTest.php.
115 $this->assertTrue($this->component->hasPluginSlotName(
"Slot1"));
116 $this->assertTrue($this->component->hasPluginSlotName(
"Slot2"));
117 $this->assertFalse($this->component->hasPluginSlotName(
"Slot3"));
◆ testInvalidTypeThrowsException()
| ilComponentInfoTest::testInvalidTypeThrowsException |
( |
| ) |
|
Definition at line 66 of file ilComponentInfoTest.php.
68 $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: