ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ModalFactoryTest.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21require_once(__DIR__ . '/ModalBase.php');
22
29{
30 public function testImplementsFactoryInterface(): 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:50
getDummyComponent()
Definition: ModalBase.php:70
Tests on factory implementation for modals.