ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
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 
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
getDummyComponent()
Definition: ModalBase.php:51
Base class for modal tests.
Definition: ModalBase.php:13
Tests on factory implementation for modals.
getModalFactory()
Definition: ModalBase.php:41