ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
◀ ilDoc Overview
InterruptiveItemFactoryTest.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\Factory
;
27
28
class
InterruptiveItemFactoryTest
extends
ILIAS_UI_TestBase
29
{
30
protected
function
getFactory
():
Factory
31
{
32
return
new
Factory
();
33
}
34
35
public
function
testStandard
(): void
36
{
37
$factory = $this->
getFactory
();
38
$this->assertInstanceOf(
39
I
\Modal\InterruptiveItem\Standard::class,
40
$factory->standard(
'id'
,
'title'
)
41
);
42
}
43
44
public
function
testKeyValue
(): void
45
{
46
$factory = $this->
getFactory
();
47
$this->assertInstanceOf(
48
I
\Modal\InterruptiveItem\KeyValue::class,
49
$factory->keyValue(
'id'
,
'key'
,
'label'
)
50
);
51
}
52
}
ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory
Definition:
Factory.php:27
ILIAS_UI_TestBase
Provides common functionality for UI tests.
Definition:
Base.php:337
InterruptiveItemFactoryTest
Definition:
InterruptiveItemFactoryTest.php:29
InterruptiveItemFactoryTest\testStandard
testStandard()
Definition:
InterruptiveItemFactoryTest.php:35
InterruptiveItemFactoryTest\testKeyValue
testKeyValue()
Definition:
InterruptiveItemFactoryTest.php:44
InterruptiveItemFactoryTest\getFactory
getFactory()
Definition:
InterruptiveItemFactoryTest.php:30
ILIAS\UI\Component\Table
ILIAS\UI\Component
ILIAS\UI\Implementation\Component
components
ILIAS
UI
tests
Component
Modal
InterruptiveItem
InterruptiveItemFactoryTest.php
Generated on Sun Oct 19 2025 23:04:47 for ILIAS by
1.9.4 (using
Doxyfile
)