ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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:47
An exception for terminatinating execution or to throw for unit testing.
Base class for modal tests.
Definition: ModalBase.php:13
getModalFactory()
Definition: ModalBase.php:19
getDummyComponent()
Definition: ModalBase.php:29
Tests on factory implementation for modals.