ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
ModalFactoryTest.php
Go to the documentation of this file.
1
<?
php
2
3
require_once(__DIR__ .
'/ModalBase.php'
);
4
5
use \ILIAS\UI\Component as
C
;
6
12
class
ModalFactoryTest
extends
ModalBase
13
{
14
public
function
test_implements_factory_interface
()
15
{
16
$factory
= $this->
getModalFactory
();
17
$this->assertInstanceOf(
"ILIAS\\UI\\Component\\Modal\\Factory"
,
$factory
);
18
19
$interruptive =
$factory
->interruptive(
'myTitle'
,
'myMessage'
,
'myFormAction'
);
20
$this->assertInstanceOf(
"ILIAS\\UI\\Component\\Modal\\Interruptive"
, $interruptive);
21
22
$round_trip =
$factory
->roundtrip(
'myTitle'
, $this->
getDummyComponent
());
23
$this->assertInstanceOf(
"ILIAS\\UI\\Component\\Modal\\RoundTrip"
, $round_trip);
24
25
$lightbox =
$factory
->lightbox(
new
LightboxMockPage
());
26
$this->assertInstanceOf(
"ILIAS\\UI\\Component\\Modal\\LightBox"
, $lightbox);
27
}
28
}
ModalFactoryTest\test_implements_factory_interface
test_implements_factory_interface()
Definition:
ModalFactoryTest.php:14
ILIAS\UI\Component
$factory
$factory
Definition:
metadata.php:43
ModalBase\getDummyComponent
getDummyComponent()
Definition:
ModalBase.php:51
LightboxMockPage
Definition:
LightboxTest.php:87
ModalBase
Base class for modal tests.
Definition:
ModalBase.php:13
ModalFactoryTest
Tests on factory implementation for modals.
Definition:
ModalFactoryTest.php:12
ModalBase\getModalFactory
getModalFactory()
Definition:
ModalBase.php:41
php
tests
UI
Component
Modal
ModalFactoryTest.php
Generated on Thu Jan 16 2025 19:02:39 for ILIAS by
1.8.13 (using
Doxyfile
)