ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ModalFactoryTest Class Reference

Tests on factory implementation for modals. More...

+ Inheritance diagram for ModalFactoryTest:
+ Collaboration diagram for ModalFactoryTest:

Public Member Functions

 testImplementsFactoryInterface ()
 
- Public Member Functions inherited from ModalBase
 getUIFactory ()
 
 normalizeHTML (string $html)
 

Additional Inherited Members

- Protected Member Functions inherited from ModalBase
 getModalFactory ()
 
 getButtonFactory ()
 
 getDummyComponent ()
 

Detailed Description

Tests on factory implementation for modals.

Author
Stefan Wanzenried sw@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

Definition at line 28 of file ModalFactoryTest.php.

Member Function Documentation

◆ testImplementsFactoryInterface()

ModalFactoryTest::testImplementsFactoryInterface ( )

Definition at line 30 of file ModalFactoryTest.php.

30 : 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 }
getModalFactory()
Definition: ModalBase.php:50
getDummyComponent()
Definition: ModalBase.php:70

References ModalBase\getDummyComponent(), and ModalBase\getModalFactory().

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: