ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS_UI_TestBase Class Reference

Provides common functionality for UI tests. More...

+ Inheritance diagram for ILIAS_UI_TestBase:
+ Collaboration diagram for ILIAS_UI_TestBase:

Public Member Functions

 setUp ()
 
 tearDown ()
 
 getUIFactory ()
 
 getTemplateFactory ()
 
 getResourceRegistry ()
 
 getLanguage ()
 
 getJavaScriptBinding ()
 
 getRefinery ()
 
 getImagePathResolver ()
 
 getDataFactory ()
 
 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)
 

Protected Member Functions

 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

Provides common functionality for UI tests.

Definition at line 298 of file Base.php.

Member Function Documentation

◆ assertHTMLEquals()

ILIAS_UI_TestBase::assertHTMLEquals ( string  $expected_html_as_string,
string  $html_as_string 
)

Definition at line 427 of file Base.php.

Referenced by ToggleButtonTest\test_append_UnavailAction(), ItemTest\test_link_title(), ButtonMonthTest\test_render(), ChartScaleBarTest\test_render(), RadioInputTest\test_render(), PlayerAudioTest\test_render_audio(), ItemTest\test_render_audio_player(), ItemShyTest\test_render_base(), PanelListingTest\test_render_base(), ItemGroupTest\test_render_base(), ItemTest\test_render_base(), ButtonTest\test_render_button_disabled(), ButtonTest\test_render_button_label(), ButtonTest\test_render_button_with_aria_label(), ButtonTest\test_render_button_with_aria_pressed(), BulkyButtonTest\test_render_button_with_aria_role_menuitem_is_engageable(), BulkyButtonTest\test_render_button_with_aria_role_menuitem_not_engageable(), ButtonTest\test_render_button_with_on_click_animation(), ButtonTest\test_render_button_with_on_load_code(), ButtonTest\test_render_button_with_signal(), DeckTest\test_render_content(), CardTest\test_render_content_full(), CardTest\test_render_content_with_component_title(), CardTest\test_render_content_with_highlight(), RadioInputTest\test_render_disabled(), ChartProgressMeterTest\test_render_fixedSize_one_bar(), ChartBarTest\test_render_horizontal(), DividerTest\test_render_horizontal_empty(), DividerTest\test_render_horizontal_with_label(), DropdownTest\test_render_items(), DropdownTest\test_render_items_with_aria_label(), DropdownTest\test_render_items_with_label(), ItemTest\test_render_lead_icon(), ItemTest\test_render_lead_image(), ItemTest\test_render_lead_letter_avatar(), ItemTest\test_render_lead_picture_avatar(), ItemTest\test_render_lead_text_and_color(), LinkTest\test_render_link(), ChartProgressMeterTest\test_render_mini(), ItemTest\test_render_progress(), ItemTest\test_render_progress_and_lead_icon(), ItemTest\test_render_progress_and_lead_image(), ToggleButtonTest\test_render_setOn_on_default(), MessageBoxTest\test_render_simple(), ChartProgressMeterTest\test_render_standard_two_bar(), CounterTest\test_render_status(), RadioInputTest\test_render_value(), DividerTest\test_render_vertical(), ChartBarTest\test_render_vertical(), PlayerVideoTest\test_render_video(), ViewControlTest\test_render_viewcontrol_mode(), ViewControlTest\test_render_viewcontrol_section(), ItemGroupTest\test_render_with_actions(), PanelSecondaryListingTest\test_render_with_actions(), PanelListingTest\test_render_with_actions(), PanelSecondaryLegacyTest\test_render_with_actions(), RepositoryObjectTest\test_render_with_actions(), MessageBoxTest\test_render_with_buttons(), MessageBoxTest\test_render_with_buttons_and_links(), RepositoryObjectTest\test_render_with_certificate_icon(), PanelSecondaryListingTest\test_render_with_footer(), PanelSecondaryLegacyTest\test_render_with_footer(), BulkyButtonTest\test_render_with_glyph_in_context(), BulkyButtonTest\test_render_with_glyph_in_context_and_disengaged(), BulkyButtonTest\test_render_with_glyph_in_context_and_engaged(), BulkyButtonTest\test_render_with_icon(), ToggleButtonTest\test_render_with_label(), DropdownTest\test_render_with_link_new_viewport(), MessageBoxTest\test_render_with_links(), LinkTest\test_render_with_new_viewport(), PanelSecondaryLegacyTest\test_render_with_no_header(), PanelSecondaryListingTest\test_render_with_no_header_but_content(), RepositoryObjectTest\test_render_with_object_icon(), PanelSecondaryListingTest\test_render_with_pagination(), PanelSecondaryLegacyTest\test_render_with_pagination(), PlayerVideoTest\test_render_with_poster(), RepositoryObjectTest\test_render_with_progressmeter(), PanelSecondaryListingTest\test_render_with_section(), PanelSecondaryLegacyTest\test_render_with_section(), ToggleButtonTest\test_render_with_signals(), PanelSecondaryListingTest\test_render_with_sortation(), PanelSecondaryLegacyTest\test_render_with_sortation(), PlayerVideoTest\test_render_with_subtitles(), GlyphTest\test_render_withCounter(), GlyphTest\test_render_withTwoCounters(), CharacteristicValueTextTest\test_rendered(), TextareaTest\test_renderer(), TextareaTest\test_renderer_counter_with_value(), TextareaTest\test_renderer_with_disabled(), TextareaTest\test_renderer_with_max_limit(), TextareaTest\test_renderer_with_min_and_max_limit(), TextareaTest\test_renderer_with_min_limit(), RoundTripTest\test_simple_rendering(), PresentationTest\testBareTableRendering(), PresentationTest\testFullRendering(), PresentationTest\testMinimalRendering(), CheckboxInputTest\testRender(), MultiSelectInputTest\testRender(), CounterClientHtmlTest\testRenderClientHtml(), CheckboxInputTest\testRenderDisabled(), MultiSelectInputTest\testRenderDisabled(), PaginationTest\testRenderDropdown(), CheckboxInputTest\testRenderError(), BreadcrumbsTest\testRendering(), BulkyLinkTest\testRenderingGlyph(), BulkyLinkTest\testRenderingIcon(), BulkyLinkTest\testRenderingWithId(), PaginationTest\testRenderLimited(), PaginationTest\testRenderLimitedWithCurrentPage(), PaginationTest\testRenderLimitedWithCurrentPage2(), CheckboxInputTest\testRenderNoByline(), MultiSelectInputTest\testRenderNoOptions(), CheckboxInputTest\testRenderRequired(), PaginationTest\testRenderUnlimited(), CheckboxInputTest\testRenderValue(), MultiSelectInputTest\testRenderValue(), BulkyLinkTest\testRenderWithAriaRoleMenuitem(), PaginationTest\testRenderWithCurrentPage(), BulkyLinkTest\testRenderWithLabelAndAltImageSame(), BulkyButtonTest\testRenderWithLabelAndAltImageSame(), ScoreSettingsTest\testScoreSettingsSectionDetails(), ScoreSettingsTest\testScoreSettingsSectionGamification(), ScoreSettingsTest\testScoreSettingsSectionScoring(), and ScoreSettingsTest\testScoreSettingsSectionSummary().

427  : void
428  {
429  $html = new DOMDocument();
430  $html->formatOutput = true;
431  $html->preserveWhiteSpace = false;
432  $expected = new DOMDocument();
433  $expected->formatOutput = true;
434  $expected->preserveWhiteSpace = false;
435  $html->loadXML($this->normalizeHTML($html_as_string));
436  $expected->loadXML($this->normalizeHTML($expected_html_as_string));
437  $this->assertEquals($expected->saveHTML(), $html->saveHTML());
438  }
normalizeHTML(string $html)
Definition: Base.php:422
+ Here is the caller graph for this function:

◆ brutallyTrimHTML()

ILIAS_UI_TestBase::brutallyTrimHTML ( string  $html)
protected

A more radical version of normalizeHTML.

Use if hard to tackle issues occur by asserting due string outputs produce an equal DOM

Definition at line 444 of file Base.php.

Referenced by SortationTest\getSortationExpectedHTML(), HiddenInputTest\test_render(), TextInputTest\test_render(), NumericInputTest\test_render(), DurationInputTest\test_render(), PlayerAudioTest\test_render_audio(), ItemTest\test_render_audio_player(), ItemShyTest\test_render_base(), PanelListingTest\test_render_base(), ItemGroupTest\test_render_base(), ItemTest\test_render_base(), DeckTest\test_render_content(), CardTest\test_render_content_full(), CardTest\test_render_content_with_component_title(), CardTest\test_render_content_with_highlight(), HiddenInputTest\test_render_disabled(), NumericInputTest\test_render_disabled(), TextInputTest\test_render_disabled(), UrlInputTest\test_render_disabled(), TextInputTest\test_render_error(), UrlInputTest\test_render_error(), NumericInputTest\test_render_error(), HiddenInputTest\test_render_escape(), ItemTest\test_render_lead_icon(), ItemTest\test_render_lead_image(), ItemTest\test_render_lead_letter_avatar(), ItemTest\test_render_lead_picture_avatar(), ItemTest\test_render_lead_text_and_color(), TextInputTest\test_render_max_value(), NumericInputTest\test_render_no_byline(), TextInputTest\test_render_no_byline(), UrlInputTest\test_render_no_byline(), ItemTest\test_render_progress(), ItemTest\test_render_progress_and_lead_icon(), ItemTest\test_render_progress_and_lead_image(), UrlInputTest\test_render_required(), TextInputTest\test_render_required(), HiddenInputTest\test_render_value(), NumericInputTest\test_render_value(), TextInputTest\test_render_value(), UrlInputTest\test_render_value(), TextInputTest\test_render_value_0(), PlayerVideoTest\test_render_video(), ItemGroupTest\test_render_with_actions(), RepositoryObjectTest\test_render_with_actions(), RepositoryObjectTest\test_render_with_certificate_icon(), PanelSecondaryListingTest\test_render_with_no_header_but_content(), RepositoryObjectTest\test_render_with_object_icon(), PlayerVideoTest\test_render_with_poster(), RepositoryObjectTest\test_render_with_progressmeter(), PlayerVideoTest\test_render_with_subtitles(), GlyphTest\test_render_with_unavailable_action(), TextareaTest\test_renderer_with_error(), UrlInputTest\test_rendering(), ItemTest\test_shy_title_and_various_properties(), RoundTripTest\test_simple_rendering(), InterruptiveTest\test_simple_rendering(), PresentationTest\testBareTableRendering(), PresentationTest\testFullRendering(), IconTest\testHTMLInAbbreviation(), IconTest\testHTMLInCustomImage(), AvatarTest\testHTMLInCustomImage(), IconTest\testHTMLInLabel(), AvatarTest\testHTMLInLabel(), IconTest\testHTMLInName(), PresentationTest\testMinimalRendering(), CheckboxInputTest\testRender(), TagInputTest\testRender(), CounterClientHtmlTest\testRenderClientHtml(), ToastClientHtmlTest\testRenderClientHtml(), ItemNotificationClientHtmlTest\testRenderClientHtml(), TagInputTest\testRenderDisabled(), CheckboxInputTest\testRenderDisabled(), CheckboxInputTest\testRenderError(), TagInputTest\testRenderError(), ItemNotificationTest\testRenderFullyFeatured(), ModeInfoTest\testRendering(), BylineNodeTest\testRendering(), LinkInputTest\testRendering(), SortationTest\testRendering(), CombinedSlateTest\testRendering(), DrilldownSlateTest\testRendering(), DrilldownTest\testRendering(), FooterTest\testRendering(), MainBarTest\testRendering(), SystemInfoTest\testRenderingBreaking(), SystemInfoTest\testRenderingCloseAction(), SystemInfoTest\testRenderingDefault(), BylineNodeTest\testRenderingExpanded(), SystemInfoTest\testRenderingImportant(), AvatarTest\testRenderingLetter(), FooterTest\testRenderingModalsWithTriggers(), SystemInfoTest\testRenderingNeutral(), FooterTest\testRenderingNoLinks(), FooterTest\testRenderingPermUrl(), AvatarTest\testRenderingPicture(), AvatarTest\testRenderingPictureWithSomeAlternativeText(), CombinedSlateTest\testRenderingWithAriaRole(), BylineNodeTest\testRenderingWithAsync(), StandardPageTest\testRenderingWithCrumbs(), BylineNodeTest\testRenderingWithIcon(), SortationTest\testRenderingWithJsBinding(), StandardPageTest\testRenderingWithMetaData(), StandardPageTest\testRenderingWithRtlLanguage(), CombinedSlateTest\testRenderingWithSubDivider(), NotificationSlateTest\testRenderingWithSubslateAndButton(), CombinedSlateTest\testRenderingWithSubslateAndButton(), StandardPageTest\testRenderingWithTitle(), CheckboxInputTest\testRenderNoByline(), TagInputTest\testRenderNoByline(), TagInputTest\testRenderRequired(), CheckboxInputTest\testRenderRequired(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandard(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandardWithUploadButton(), CheckboxInputTest\testRenderValue(), DurationInputTest\testRenderwithDifferentLabels(), ILIAS\Tests\UI\Component\Dropzone\File\WrapperTest\testRenderWrapper(), ScoreSettingsTest\testScoreSettingsSectionDetails(), ScoreSettingsTest\testScoreSettingsSectionGamification(), ScoreSettingsTest\testScoreSettingsSectionScoring(), ScoreSettingsTest\testScoreSettingsSectionSummary(), SectionInputTest\testSectionRendering(), SectionInputTest\testSectionRenderingWithError(), ViewControlFieldSelectionTest\testViewControlFieldSelectionRendering(), ViewControlSortationTest\testViewControlFieldSortationRendering(), and ViewControlGroupTest\testViewControlGroupRendering().

444  : string
445  {
446  $html = str_replace(["\n", "\r", "\t"], "", $html);
447  $html = preg_replace('# {2,}#', " ", $html);
448  $html = preg_replace('/<!--(.|\s)*?-->/', '', $html);
449  $html = preg_replace("/>(\s+)</", "><", $html);
450  $html = str_replace(" >", ">", $html);
451  $html = str_replace(" <", "<", $html);
452  return trim($html);
453  }
+ Here is the caller graph for this function:

◆ brutallyTrimSignals()

ILIAS_UI_TestBase::brutallyTrimSignals ( string  $html)
protected

A naive replacement of all il_signal-ids with dots to ease comparisons of rendered output.

Definition at line 459 of file Base.php.

Referenced by PresentationTest\testFullRendering(), PresentationTest\testMinimalRendering(), ScoreSettingsTest\testScoreSettingsSectionDetails(), ScoreSettingsTest\testScoreSettingsSectionGamification(), ScoreSettingsTest\testScoreSettingsSectionScoring(), and ScoreSettingsTest\testScoreSettingsSectionSummary().

459  : string
460  {
461  $html = preg_replace('/il_signal_(\w+)/', "il_signal...", $html);
462  return $html;
463  }
+ Here is the caller graph for this function:

◆ getDataFactory()

ILIAS_UI_TestBase::getDataFactory ( )

Definition at line 350 of file Base.php.

Referenced by GlyphTest\test_dont_render_counter(), BarConfigTest\test_with_color(), and BarConfigTest\test_with_width().

350  : DataFactory
351  {
352  return $this->createMock(DataFactory::class);
353  }
+ Here is the caller graph for this function:

◆ getDecoratedRenderer()

ILIAS_UI_TestBase::getDecoratedRenderer ( Renderer  $default)

Definition at line 417 of file Base.php.

Referenced by DecoratedRendererTest\test_render(), DecoratedRendererTest\test_render_async(), and DecoratedRendererTest\test_render_with_manipulation().

418  {
419  return new TestDecoratedRenderer($default);
420  }
+ Here is the caller graph for this function:

◆ getDefaultRenderer()

ILIAS_UI_TestBase::getDefaultRenderer ( JavaScriptBinding  $js_binding = null,
array  $with_stub_renderings = [] 
)

Definition at line 355 of file Base.php.

References $lng, ILIAS\Repository\$refinery, ILIAS\UI\Implementation\Component\Input\getDataFactory(), and ILIAS\UI\Implementation\Component\Input\getLanguage().

Referenced by ButtonTest\test_____render_close_button_with_on_load_code(), ToggleButtonTest\test_append_UnavailAction(), LightboxTest\test_different_page_type_rendering(), GlyphTest\test_dont_render_counter(), DefaultRendererTest\test_getContexts(), DefaultRendererTest\test_getRenderer_caching(), DefaultRendererTest\test_getRenderer_successfully(), DefaultRendererTest\test_invokesRegistry(), DateTimeInputTest\test_jsConfigRendering(), ItemTest\test_link_title(), DecoratedRendererTest\test_render(), HiddenInputTest\test_render(), ButtonMonthTest\test_render(), ChartScaleBarTest\test_render(), TextInputTest\test_render(), NumericInputTest\test_render(), RadioInputTest\test_render(), DefaultRendererTest\test_render(), DurationInputTest\test_render(), ImageTest\test_render_alt_escaping(), DecoratedRendererTest\test_render_async(), PopoverTest\test_render_async(), DefaultRendererTest\test_render_async_array(), DefaultRendererTest\test_render_async_no_js(), DefaultRendererTest\test_render_async_with_js(), DefaultRendererTest\test_render_async_with_js_twice(), PlayerAudioTest\test_render_audio(), ItemTest\test_render_audio_player(), ItemShyTest\test_render_base(), PanelListingTest\test_render_base(), ItemGroupTest\test_render_base(), ItemTest\test_render_base(), ButtonTest\test_render_btn_tag_classes(), ButtonTest\test_render_btn_tag_colors(), ButtonTest\test_render_btn_tag_relevance(), ButtonTest\test_render_button_disabled(), ButtonTest\test_render_button_label(), ButtonTest\test_render_button_with_aria_label(), ButtonTest\test_render_button_with_aria_pressed(), BulkyButtonTest\test_render_button_with_aria_role_menuitem_is_engageable(), BulkyButtonTest\test_render_button_with_aria_role_menuitem_not_engageable(), ButtonTest\test_render_button_with_on_click_animation(), ButtonTest\test_render_button_with_on_load_code(), ButtonTest\test_render_button_with_signal(), ButtonTest\test_render_close_button(), LegacyTest\test_render_content(), DeckTest\test_render_content(), CardTest\test_render_content_full(), CardTest\test_render_content_with_component_title(), CardTest\test_render_content_with_highlight(), ListingTest\test_render_descriptive_listing(), HiddenInputTest\test_render_disabled(), RadioInputTest\test_render_disabled(), NumericInputTest\test_render_disabled(), TextInputTest\test_render_disabled(), UrlInputTest\test_render_disabled(), DropdownTest\test_render_empty(), TextInputTest\test_render_error(), NumericInputTest\test_render_error(), UrlInputTest\test_render_error(), HiddenInputTest\test_render_escape(), ChartProgressMeterTest\test_render_fixedSize_one_bar(), ChartBarTest\test_render_horizontal(), DividerTest\test_render_horizontal_empty(), DividerTest\test_render_horizontal_with_label(), DropdownTest\test_render_items(), DropdownTest\test_render_items_with_aria_label(), DropdownTest\test_render_items_with_label(), ItemTest\test_render_lead_icon(), ItemTest\test_render_lead_image(), ItemTest\test_render_lead_letter_avatar(), ItemTest\test_render_lead_picture_avatar(), ItemTest\test_render_lead_text_and_color(), LinkTest\test_render_link(), TextInputTest\test_render_max_value(), ChartProgressMeterTest\test_render_mini(), ButtonTest\test_render_minimize_button(), NumericInputTest\test_render_no_byline(), TextInputTest\test_render_no_byline(), UrlInputTest\test_render_no_byline(), ListingTest\test_render_ordered_listing(), ItemTest\test_render_progress(), ItemTest\test_render_progress_and_lead_icon(), ItemTest\test_render_progress_and_lead_image(), UrlInputTest\test_render_required(), TextInputTest\test_render_required(), ImageTest\test_render_responsive(), ToggleButtonTest\test_render_setOn_on_default(), MessageBoxTest\test_render_simple(), GlyphTest\test_render_simple(), PopoverTest\test_render_standard(), ImageTest\test_render_standard(), ChartProgressMeterTest\test_render_standard_two_bar(), CounterTest\test_render_status(), ListingTest\test_render_unordered_listing(), HiddenInputTest\test_render_value(), RadioInputTest\test_render_value(), NumericInputTest\test_render_value(), TextInputTest\test_render_value(), UrlInputTest\test_render_value(), TextInputTest\test_render_value_0(), DividerTest\test_render_vertical(), ChartBarTest\test_render_vertical(), PlayerVideoTest\test_render_video(), ViewControlTest\test_render_viewcontrol_mode(), ViewControlTest\test_render_viewcontrol_section(), GlyphTest\test_render_with_action(), ItemGroupTest\test_render_with_actions(), PanelSecondaryListingTest\test_render_with_actions(), PanelListingTest\test_render_with_actions(), PanelSecondaryLegacyTest\test_render_with_actions(), RepositoryObjectTest\test_render_with_actions(), MessageBoxTest\test_render_with_buttons(), MessageBoxTest\test_render_with_buttons_and_links(), RepositoryObjectTest\test_render_with_certificate_icon(), PanelSecondaryListingTest\test_render_with_footer(), PanelSecondaryLegacyTest\test_render_with_footer(), BulkyButtonTest\test_render_with_glyph_in_context(), BulkyButtonTest\test_render_with_glyph_in_context_and_disengaged(), BulkyButtonTest\test_render_with_glyph_in_context_and_engaged(), BulkyButtonTest\test_render_with_icon(), ToggleButtonTest\test_render_with_label(), DropdownTest\test_render_with_link_new_viewport(), MessageBoxTest\test_render_with_links(), DecoratedRendererTest\test_render_with_manipulation(), LinkTest\test_render_with_new_viewport(), PanelSecondaryLegacyTest\test_render_with_no_header(), PanelSecondaryListingTest\test_render_with_no_header_but_content(), PanelSecondaryListingTest\test_render_with_no_header_no_content_no_footer(), RepositoryObjectTest\test_render_with_object_icon(), GlyphTest\test_render_with_on_load_code(), PanelSecondaryListingTest\test_render_with_pagination(), PanelSecondaryLegacyTest\test_render_with_pagination(), PlayerVideoTest\test_render_with_poster(), RepositoryObjectTest\test_render_with_progressmeter(), PanelSecondaryListingTest\test_render_with_section(), PanelSecondaryLegacyTest\test_render_with_section(), ImageTest\test_render_with_signal_action(), ToggleButtonTest\test_render_with_signals(), PanelSecondaryListingTest\test_render_with_sortation(), PanelSecondaryLegacyTest\test_render_with_sortation(), ImageTest\test_render_with_string_action(), PlayerVideoTest\test_render_with_subtitles(), PlayerAudioTest\test_render_with_transcript(), GlyphTest\test_render_with_unavailable_action(), GlyphTest\test_render_withCounter(), GlyphTest\test_render_withTwoCounters(), CharacteristicValueTextTest\test_rendered(), TextareaTest\test_renderer(), TextareaTest\test_renderer_counter_with_value(), TextareaTest\test_renderer_with_disabled(), TextareaTest\test_renderer_with_error(), TextareaTest\test_renderer_with_max_limit(), TextareaTest\test_renderer_with_min_and_max_limit(), TextareaTest\test_renderer_with_min_limit(), UrlInputTest\test_rendering(), ItemTest\test_shy_title_and_various_properties(), LightboxTest\test_simple_image_page_rendering(), RoundTripTest\test_simple_rendering(), InterruptiveTest\test_simple_rendering(), LightboxTest\test_simple_text_page_rendering(), ImageTest\test_with_additional_on_load_code(), ImageTest\test_with_empty_action_and_no_additional_on_load_code(), DefaultRendererTest\test_withAdditionalContext_clones(), MetaBarTest\testAcceptsBulkyLinkAsEntry(), PresentationTest\testBareTableRendering(), PresentationTest\testFullRendering(), LSLocatorBuilderTest\testGUI(), IconTest\testHTMLInAbbreviation(), IconTest\testHTMLInCustomImage(), AvatarTest\testHTMLInCustomImage(), IconTest\testHTMLInLabel(), AvatarTest\testHTMLInLabel(), IconTest\testHTMLInName(), GlyphTest\testIsTabbable(), PresentationTest\testMinimalRendering(), CheckboxInputTest\testRender(), TagInputTest\testRender(), MultiSelectInputTest\testRender(), CounterClientHtmlTest\testRenderClientHtml(), ToastClientHtmlTest\testRenderClientHtml(), ItemNotificationClientHtmlTest\testRenderClientHtml(), TagInputTest\testRenderDisabled(), CheckboxInputTest\testRenderDisabled(), MultiSelectInputTest\testRenderDisabled(), PaginationTest\testRenderDropdown(), CheckboxInputTest\testRenderError(), TagInputTest\testRenderError(), ItemNotificationTest\testRenderFullyFeatured(), ModeInfoTest\testRendering(), BylineNodeTest\testRendering(), LinkInputTest\testRendering(), SortationTest\testRendering(), CombinedSlateTest\testRendering(), BreadcrumbsTest\testRendering(), DrilldownSlateTest\testRendering(), SimpleNodeTest\testRendering(), DrilldownTest\testRendering(), MetaBarTest\testRendering(), FooterTest\testRendering(), MainBarTest\testRendering(), IconTest\testRenderingCustom(), BylineNodeTest\testRenderingExpanded(), BulkyLinkTest\testRenderingGlyph(), BulkyLinkTest\testRenderingIcon(), AvatarTest\testRenderingLetter(), FooterTest\testRenderingModalsWithTriggers(), FooterTest\testRenderingNoLinks(), FooterTest\testRenderingPermUrl(), AvatarTest\testRenderingPicture(), AvatarTest\testRenderingPictureWithSomeAlternativeText(), IconTest\testRenderingStandard(), IconTest\testRenderingStandardAbbreviation(), IconTest\testRenderingStandardDisabled(), IconTest\testRenderingStandardJSBindable(), CombinedSlateTest\testRenderingWithAriaRole(), BylineNodeTest\testRenderingWithAsync(), SimpleNodeTest\testRenderingWithAsync(), StandardPageTest\testRenderingWithCrumbs(), BylineNodeTest\testRenderingWithIcon(), SimpleNodeTest\testRenderingWithIcon(), SimpleNodeTest\testRenderingWithIconAndAltAttribute(), BulkyLinkTest\testRenderingWithId(), SortationTest\testRenderingWithJsBinding(), StandardPageTest\testRenderingWithMetaData(), StandardPageTest\testRenderingWithRtlLanguage(), CombinedSlateTest\testRenderingWithSubDivider(), NotificationSlateTest\testRenderingWithSubslateAndButton(), CombinedSlateTest\testRenderingWithSubslateAndButton(), StandardPageTest\testRenderingWithTitle(), PaginationTest\testRenderLimited(), PaginationTest\testRenderLimitedWithCurrentPage(), PaginationTest\testRenderLimitedWithCurrentPage2(), CheckboxInputTest\testRenderNoByline(), TagInputTest\testRenderNoByline(), MultiSelectInputTest\testRenderNoOptions(), TagInputTest\testRenderRequired(), CheckboxInputTest\testRenderRequired(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandard(), ILIAS\Tests\UI\Component\Dropzone\File\StandardTest\testRenderStandardWithUploadButton(), PaginationTest\testRenderUnlimited(), CheckboxInputTest\testRenderValue(), MultiSelectInputTest\testRenderValue(), BulkyLinkTest\testRenderWithAriaRoleMenuitem(), PaginationTest\testRenderWithCurrentPage(), DurationInputTest\testRenderwithDifferentLabels(), BulkyLinkTest\testRenderWithLabelAndAltImageSame(), BulkyButtonTest\testRenderWithLabelAndAltImageSame(), ILIAS\Tests\UI\Component\Dropzone\File\WrapperTest\testRenderWrapper(), ScoreSettingsTest\testScoreSettingsSectionDetails(), ScoreSettingsTest\testScoreSettingsSectionGamification(), ScoreSettingsTest\testScoreSettingsSectionScoring(), ScoreSettingsTest\testScoreSettingsSectionSummary(), SectionInputTest\testSectionRendering(), SectionInputTest\testSectionRenderingWithError(), IconTest\testSetCustomLabel(), GlyphTest\testTabbableGlyphRender(), ViewControlNullTest\testViewControlFieldNullRendering(), ViewControlFieldSelectionTest\testViewControlFieldSelectionRendering(), ViewControlSortationTest\testViewControlFieldSortationRendering(), and ViewControlGroupTest\testViewControlGroupRendering().

359  $ui_factory = $this->getUIFactory();
360  $tpl_factory = $this->getTemplateFactory();
361  $resource_registry = $this->getResourceRegistry();
362  $lng = $this->getLanguage();
363  if (!$js_binding) {
364  $js_binding = $this->getJavaScriptBinding();
365  }
366 
367  $refinery = $this->getRefinery();
368  $image_path_resolver = $this->getImagePathResolver();
369  $data_factory = $this->getDataFactory();
370 
371  $component_renderer_loader = new Render\LoaderCachingWrapper(
373  $resource_registry,
374  new Render\FSLoader(
376  $ui_factory,
377  $tpl_factory,
378  $lng,
379  $js_binding,
380  $refinery,
381  $image_path_resolver,
382  $data_factory
383  ),
385  $ui_factory,
386  $tpl_factory,
387  $lng,
388  $js_binding,
389  $refinery,
390  $image_path_resolver,
391  $data_factory
392  ),
394  $ui_factory,
395  $tpl_factory,
396  $lng,
397  $js_binding,
398  $refinery,
399  $image_path_resolver,
400  $data_factory
401  ),
403  $ui_factory,
404  $tpl_factory,
405  $lng,
406  $js_binding,
407  $refinery,
408  $image_path_resolver,
409  $data_factory
410  )
411  )
412  )
413  );
414  return new TestDefaultRenderer($component_renderer_loader, $with_stub_renderings);
415  }
$lng
Loads renderers for components from the file system.
Definition: FSLoader.php:39
getImagePathResolver()
Definition: Base.php:345
Registers resources for retreived renderers at a ResourceRegistry.
getJavaScriptBinding()
Definition: Base.php:330
getTemplateFactory()
Definition: Base.php:315
getResourceRegistry()
Definition: Base.php:320
Refinery Factory $refinery
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getImagePathResolver()

ILIAS_UI_TestBase::getImagePathResolver ( )

Definition at line 345 of file Base.php.

◆ getJavaScriptBinding()

ILIAS_UI_TestBase::getJavaScriptBinding ( )

Definition at line 330 of file Base.php.

Referenced by GlyphTest\test_dont_render_counter(), and DateTimeInputTest\test_jsConfigRendering().

331  {
332  return new LoggingJavaScriptBinding();
333  }
+ Here is the caller graph for this function:

◆ getLanguage()

◆ getRefinery()

ILIAS_UI_TestBase::getRefinery ( )
Returns
|mixed|MockObject

Definition at line 338 of file Base.php.

Referenced by SectionInputTest\getFieldFactory(), ScoreSettingsTest\getFieldFactory(), ScoreSettingsTest\getUIPack(), and GlyphTest\test_dont_render_counter().

339  {
340  return $this->getMockBuilder(\ILIAS\Refinery\Factory::class)
341  ->disableOriginalConstructor()
342  ->getMock();
343  }
Class ChatMainBarProvider .
+ Here is the caller graph for this function:

◆ getResourceRegistry()

ILIAS_UI_TestBase::getResourceRegistry ( )

Definition at line 320 of file Base.php.

321  {
322  return new LoggingRegistry();
323  }

◆ getTemplateFactory()

◆ getUIFactory()

ILIAS_UI_TestBase::getUIFactory ( )

Definition at line 310 of file Base.php.

Referenced by GlyphTest\test_dont_render_counter().

310  : NoUIFactory
311  {
312  return new NoUIFactory();
313  }
+ Here is the caller graph for this function:

◆ normalizeHTML()

ILIAS_UI_TestBase::normalizeHTML ( string  $html)

Definition at line 422 of file Base.php.

Referenced by LSLocatorBuilderTest\stripHTML(), ButtonTest\test_____render_close_button_with_on_load_code(), ImageTest\test_render_alt_escaping(), ButtonTest\test_render_btn_tag_classes(), ButtonTest\test_render_btn_tag_colors(), ButtonTest\test_render_btn_tag_relevance(), ButtonTest\test_render_button_disabled(), ButtonTest\test_render_button_label(), ButtonTest\test_render_button_with_aria_label(), ButtonTest\test_render_button_with_aria_pressed(), ButtonTest\test_render_button_with_on_click_animation(), ButtonTest\test_render_button_with_on_load_code(), ButtonTest\test_render_button_with_signal(), ButtonTest\test_render_close_button(), ListingTest\test_render_descriptive_listing(), UrlInputTest\test_render_disabled(), UrlInputTest\test_render_error(), ButtonTest\test_render_minimize_button(), UrlInputTest\test_render_no_byline(), ListingTest\test_render_ordered_listing(), UrlInputTest\test_render_required(), ImageTest\test_render_responsive(), MessageBoxTest\test_render_simple(), GlyphTest\test_render_simple(), PopoverTest\test_render_standard(), ImageTest\test_render_standard(), CounterTest\test_render_status(), ListingTest\test_render_unordered_listing(), UrlInputTest\test_render_value(), ViewControlTest\test_render_viewcontrol_mode(), GlyphTest\test_render_with_action(), MessageBoxTest\test_render_with_buttons(), MessageBoxTest\test_render_with_buttons_and_links(), MessageBoxTest\test_render_with_links(), GlyphTest\test_render_with_on_load_code(), ImageTest\test_render_with_signal_action(), ImageTest\test_render_with_string_action(), GlyphTest\test_render_with_unavailable_action(), GlyphTest\test_render_withCounter(), GlyphTest\test_render_withTwoCounters(), TextareaTest\test_renderer(), TextareaTest\test_renderer_counter_with_value(), TextareaTest\test_renderer_with_disabled(), TextareaTest\test_renderer_with_max_limit(), TextareaTest\test_renderer_with_min_and_max_limit(), TextareaTest\test_renderer_with_min_limit(), UrlInputTest\test_rendering(), ImageTest\test_with_additional_on_load_code(), ImageTest\test_with_empty_action_and_no_additional_on_load_code(), LinkInputTest\testRendering(), BreadcrumbsTest\testRendering(), IconTest\testRenderingCustom(), IconTest\testRenderingStandard(), IconTest\testRenderingStandardAbbreviation(), IconTest\testRenderingStandardDisabled(), IconTest\testRenderingStandardJSBindable(), IconTest\testSetCustomLabel(), and GlyphTest\testTabbableGlyphRender().

422  : string
423  {
424  return trim(str_replace(["\n", "\r"], "", $html));
425  }
+ Here is the caller graph for this function:

◆ setUp()

ILIAS_UI_TestBase::setUp ( )

Definition at line 300 of file Base.php.

300  : void
301  {
302  assert_options(ASSERT_WARNING, 0);
303  }

◆ tearDown()

ILIAS_UI_TestBase::tearDown ( )

Definition at line 305 of file Base.php.

305  : void
306  {
307  assert_options(ASSERT_WARNING, 1);
308  }

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