ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ 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
}
$id
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition:
plugin.php:23
ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\InterruptiveItem
Definition:
InterruptiveItem.php:27
ILIAS_UI_TestBase
Provides common functionality for UI tests.
Definition:
Base.php:337
InterruptiveItemTest
Definition:
InterruptiveItemTest.php:36
InterruptiveItemTest\testConstruction
testConstruction()
Definition:
InterruptiveItemTest.php:37
InterruptiveItemTest\testGetId
testGetId()
Definition:
InterruptiveItemTest.php:47
TestingItem
Dummy-implementation for testing.
Definition:
InterruptiveItemTest.php:32
ILIAS\UI\Component\Table
ILIAS\UI\Component
ILIAS\UI\Implementation\Component
components
ILIAS
UI
tests
Component
Modal
InterruptiveItem
InterruptiveItemTest.php
Generated on Sat Oct 18 2025 23:04:54 for ILIAS by
1.9.4 (using
Doxyfile
)