ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ ilDoc Overview
InterruptiveItemTest.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
require_once(
"vendor/composer/vendor/autoload.php"
);
22
require_once(__DIR__ .
"../../../../Base.php"
);
23
24
use
ILIAS\UI\Component
as
C
;
25
use
ILIAS\UI\Implementation\Component
as
I
;
26
use
ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\InterruptiveItem
as Item;
27
31
class
TestingItem
extends
Item
32
{
33
}
34
35
class
InterruptiveItemTest
extends
ILIAS_UI_TestBase
36
{
37
public
function
testConstruction
(): void
38
{
39
$item =
new
TestingItem
(
'1'
);
40
$this->assertInstanceOf(
41
Item::class,
42
$item
43
);
44
}
45
46
#[\PHPUnit\Framework\Attributes\Depends('testConstruction')]
47
public
function
testGetId
(): void
48
{
49
$id
=
'1'
;
50
$item =
new
TestingItem
(
$id
);
51
$this->assertEquals(
$id
, $item->getId());
52
}
53
}
ILIAS\UI\Implementation\Component
ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\InterruptiveItem
Definition:
InterruptiveItem.php:26
ILIAS\UI\Implementation
ILIAS\UI\Component
InterruptiveItemTest\testGetId
testGetId()
Definition:
InterruptiveItemTest.php:47
InterruptiveItemTest\testConstruction
testConstruction()
Definition:
InterruptiveItemTest.php:37
TestingItem
Dummy-implementation for testing.
Definition:
InterruptiveItemTest.php:31
ILIAS_UI_TestBase
InterruptiveItemTest
Definition:
InterruptiveItemTest.php:35
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
components
ILIAS
UI
tests
Component
Modal
InterruptiveItem
InterruptiveItemTest.php
Generated on Wed Sep 3 2025 23:04:22 for ILIAS by
1.8.13 (using
Doxyfile
)