ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ModalFactoryTest Class Reference

Tests on factory implementation for modals. More...

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

Public Member Functions

 test_implements_factory_interface ()
 
- Public Member Functions inherited from ModalBase
 getUIFactory ()
 
 normalizeHTML ($html)
 
- Public Member Functions inherited from ILIAS_UI_TestBase
 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getDefaultRenderer (JavaScriptBinding $js_binding=null)
 
 normalizeHTML ($html)
 
 assertHTMLEquals ($expected_html_as_string, $html_as_string)
 

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 12 of file ModalFactoryTest.php.

Member Function Documentation

◆ test_implements_factory_interface()

ModalFactoryTest::test_implements_factory_interface ( )

Definition at line 14 of file ModalFactoryTest.php.

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

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  }
$factory
Definition: metadata.php:47
getDummyComponent()
Definition: ModalBase.php:29
getModalFactory()
Definition: ModalBase.php:19
+ Here is the call graph for this function:

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