ILIAS  release_8 Revision v8.24
ModalFactoryTest.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21require_once(__DIR__ . '/ModalBase.php');
22
29{
30 public function test_implements_factory_interface(): void
31 {
32 $factory = $this->getModalFactory();
33 $this->assertInstanceOf("ILIAS\\UI\\Component\\Modal\\Factory", $factory);
34
35 $interruptive = $factory->interruptive('myTitle', 'myMessage', 'myFormAction');
36 $this->assertInstanceOf("ILIAS\\UI\\Component\\Modal\\Interruptive", $interruptive);
37
38 $round_trip = $factory->roundtrip('myTitle', $this->getDummyComponent());
39 $this->assertInstanceOf("ILIAS\\UI\\Component\\Modal\\RoundTrip", $round_trip);
40
41 $lightbox = $factory->lightbox(new LightboxMockPage());
42 $this->assertInstanceOf("ILIAS\\UI\\Component\\Modal\\LightBox", $lightbox);
43 }
44}
Base class for modal tests.
Definition: ModalBase.php:35
getModalFactory()
Definition: ModalBase.php:51
getDummyComponent()
Definition: ModalBase.php:67
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$factory
Definition: metadata.php:75