ILIAS
trunk Revision v11.0_alpha-2662-g519ff7d528f
◀ 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
}
InterruptiveItemFactoryTest\testKeyValue
testKeyValue()
Definition:
InterruptiveItemFactoryTest.php:44
ILIAS\UI\Implementation\Component
InterruptiveItemFactoryTest\testStandard
testStandard()
Definition:
InterruptiveItemFactoryTest.php:35
ILIAS\UI\Implementation
ILIAS\UI\Component
InterruptiveItemFactoryTest
Definition:
InterruptiveItemFactoryTest.php:28
ILIAS_UI_TestBase
Factory
ILIAS\UI\Implementation\Component\Modal\InterruptiveItem\Factory
Definition:
Factory.php:26
InterruptiveItemFactoryTest\getFactory
getFactory()
Definition:
InterruptiveItemFactoryTest.php:30
components
ILIAS
UI
tests
Component
Modal
InterruptiveItem
InterruptiveItemFactoryTest.php
Generated on Wed Sep 3 2025 23:04:22 for ILIAS by
1.8.13 (using
Doxyfile
)