ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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)
 
- Public Member Functions inherited from ILIAS_UI_TestBase
 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getRefinery ()
 
 getImagePathResolver ()
 
 getDataFactory ()
 
 getHelpTextRetriever ()
 
 getUploadLimitResolver ()
 
 getDefaultRenderer (JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
 
 getDecoratedRenderer (Renderer $default)
 
 normalizeHTML (string $html)
 
 assertHTMLEquals (string $expected_html_as_string, string $html_as_string)
 

Additional Inherited Members

- Protected Member Functions inherited from ModalBase
 getModalFactory ()
 
 getButtonFactory ()
 
 getDummyComponent ()
 
- Protected Member Functions inherited from ILIAS_UI_TestBase
 brutallyTrimHTML (string $html)
 A more radical version of normalizeHTML. More...
 
 brutallyTrimSignals (string $html)
 A naive replacement of all il_signal-ids with dots to ease comparisons of rendered output. More...
 

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.

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

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  }
getDummyComponent()
Definition: ModalBase.php:71
getModalFactory()
Definition: ModalBase.php:51
+ Here is the call graph for this function:

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