ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ModalFactoryTest.php
Go to the documentation of this file.
1<?php
2
3require_once(__DIR__ . '/ModalBase.php');
4
5use \ILIAS\UI\Component as C;
6
13{
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}
$factory
Definition: metadata.php:43
An exception for terminatinating execution or to throw for unit testing.
Base class for modal tests.
Definition: ModalBase.php:14
getModalFactory()
Definition: ModalBase.php:41
getDummyComponent()
Definition: ModalBase.php:51
Tests on factory implementation for modals.