ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ModalBase Class Reference

Base class for modal tests. More...

+ Inheritance diagram for ModalBase:
+ Collaboration diagram for ModalBase:

Public Member Functions

 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)
 

Protected Member Functions

 getModalFactory ()
 
 getButtonFactory ()
 
 getDummyComponent ()
 

Detailed Description

Base class for modal tests.

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

Definition at line 13 of file ModalBase.php.

Member Function Documentation

◆ getButtonFactory()

ModalBase::getButtonFactory ( )
protected

Definition at line 46 of file ModalBase.php.

Referenced by RoundTripTest\test_get_action_buttons(), RoundTripTest\test_simple_rendering(), and RoundTripTest\test_with_action_buttons().

47  {
48  return new \ILIAS\UI\Implementation\Component\Button\Factory();
49  }
+ Here is the caller graph for this function:

◆ getDummyComponent()

ModalBase::getDummyComponent ( )
protected

◆ getModalFactory()

◆ getUIFactory()

ModalBase::getUIFactory ( )

Definition at line 15 of file ModalBase.php.

Referenced by RoundTripTest\test_simple_rendering().

16  {
17  return new \ILIAS\UI\Implementation\Factory(
18  new I\Component\Counter\Factory(),
19  $this->createMock(C\Glyph\Factory::class),
20  $this->createMock(C\Button\Factory::class),
21  $this->createMock(C\Listing\Factory::class),
22  $this->createMock(C\Image\Factory::class),
23  $this->createMock(C\Panel\Factory::class),
24  $this->createMock(C\Modal\Factory::class),
25  $this->createMock(C\Dropzone\Factory::class),
26  $this->createMock(C\Popover\Factory::class),
27  $this->createMock(C\Divider\Factory::class),
28  $this->createMock(C\Link\Factory::class),
29  $this->createMock(C\Dropdown\Factory::class),
30  $this->createMock(C\Item\Factory::class),
31  $this->createMock(C\Icon\Factory::class),
32  $this->createMock(C\ViewControl\Factory::class),
33  $this->createMock(C\Chart\Factory::class),
34  $this->createMock(C\Input\Factory::class),
35  $this->createMock(C\Table\Factory::class),
36  $this->createMock(C\MessageBox\Factory::class),
37  $this->createMock(C\Card\Factory::class)
38  );
39  }
+ Here is the caller graph for this function:

◆ normalizeHTML()

ModalBase::normalizeHTML (   $html)

Definition at line 56 of file ModalBase.php.

References $html.

Referenced by LightboxTest\test_different_page_type_rendering(), LightboxTest\test_simple_image_page_rendering(), RoundTripTest\test_simple_rendering(), InterruptiveTest\test_simple_rendering(), and LightboxTest\test_simple_text_page_rendering().

57  {
58  $html = parent::normalizeHTML($html);
59  // The times entity is used for closing the modal and not supported in DomDocument::loadXML()
60  return str_replace(['×', "\t"], ['', ''], $html);
61  }
$html
Definition: example_001.php:87
+ Here is the caller graph for this function:

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