Class SystemInfoTest.
More...
◆ getDefaultRenderer()
SystemInfoTest::getDefaultRenderer |
( |
JavaScriptBinding |
$js_binding = null , |
|
|
|
$with_stub_renderings = [] |
|
) |
| |
◆ getUIFactory()
SystemInfoTest::getUIFactory |
( |
| ) |
|
◆ setUp()
SystemInfoTest::setUp |
( |
| ) |
|
◆ testRenderingBreaking()
SystemInfoTest::testRenderingBreaking |
( |
| ) |
|
Definition at line 127 of file SystemInfoTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), close(), and getDefaultRenderer().
129 $headline =
'That\'s one small step for [a] man';
130 $information =
'Lorem IPsum dolor sit amet';
132 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
133 ->withDenotation(SystemInfo::DENOTATION_BREAKING);
137 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-breaking" data-
close-uri=
"" role=
"alert" aria-labelledby=
"il-system-info-headline" aria-describedby=
"il-system-info-headline">
138 <div
class=
"il-system-info-content-wrapper">
139 <div
class=
"il-system-info-content">
140 <span
class=
"il-system-info-headline">$headline</span>
141 <span
class=
"il-system-info-body">$information</span>
144 <div
class=
"il-system-info-actions">
145 <span
class=
"il-system-info-more">
146 <a
class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
148 <span
class=
"il-system-info-close"></span>
153 $actual = $r->render($system_info);
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ testRenderingCloseAction()
SystemInfoTest::testRenderingCloseAction |
( |
| ) |
|
Definition at line 161 of file SystemInfoTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), close(), and getDefaultRenderer().
163 $headline =
'That\'s one small step for [a] man';
164 $information =
'Lorem IPsum dolor sit amet';
165 $uri_string =
'http://one_giant_leap?for=mankind';
166 $action =
new URI($uri_string);
168 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
169 ->withDismissAction($action);
172 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"$uri_string" aria-live=
"polite" aria-labelledby=
"il-system-info-headline" aria-describedby=
"il-system-info-headline">
173 <div
class=
"il-system-info-content-wrapper">
174 <div
class=
"il-system-info-content">
175 <span
class=
"il-system-info-headline">$headline</span>
176 <span
class=
"il-system-info-body">$information</span>
179 <div
class=
"il-system-info-actions">
180 <span
class=
"il-system-info-more">
181 <a
class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
183 <span
class=
"il-system-info-close"><a
class=
"glyph" href=
"#" aria-label=
"close" id=
"id"><span
class=
"glyphicon glyphicon-remove" aria-hidden=
"true"></span></a></span>
188 $actual = $r->render($system_info);
The scope of this class is split ilias-conform URI's into components.
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ testRenderingDefault()
SystemInfoTest::testRenderingDefault |
( |
| ) |
|
Definition at line 30 of file SystemInfoTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), close(), and getDefaultRenderer().
32 $headline =
'That\'s one small step for [a] man';
33 $information =
'Lorem IPsum dolor sit amet';
35 $system_info =
new SystemInfo($this->sig_gen, $headline, $information);
39 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"il-system-info-headline" aria-describedby=
"il-system-info-headline">
40 <div
class=
"il-system-info-content-wrapper">
41 <div
class=
"il-system-info-content">
42 <span
class=
"il-system-info-headline">$headline</span>
43 <span
class=
"il-system-info-body">$information</span>
46 <div
class=
"il-system-info-actions">
47 <span
class=
"il-system-info-more">
48 <a
class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
50 <span
class=
"il-system-info-close"></span>
55 $actual = $r->render($system_info);
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ testRenderingImportant()
SystemInfoTest::testRenderingImportant |
( |
| ) |
|
Definition at line 95 of file SystemInfoTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), close(), and getDefaultRenderer().
97 $headline =
'That\'s one small step for [a] man';
98 $information =
'Lorem IPsum dolor sit amet';
100 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
101 ->withDenotation(SystemInfo::DENOTATION_IMPORTANT);
103 $actual = $r->render($system_info);
105 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-important" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"il-system-info-headline" aria-describedby=
"il-system-info-headline">
106 <div
class=
"il-system-info-content-wrapper">
107 <div
class=
"il-system-info-content">
108 <span
class=
"il-system-info-headline">$headline</span>
109 <span
class=
"il-system-info-body">$information</span>
112 <div
class=
"il-system-info-actions">
113 <span
class=
"il-system-info-more">
114 <a
class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
116 <span
class=
"il-system-info-close"></span>
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ testRenderingNeutral()
SystemInfoTest::testRenderingNeutral |
( |
| ) |
|
Definition at line 62 of file SystemInfoTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), close(), and getDefaultRenderer().
64 $headline =
'That\'s one small step for [a] man';
65 $information =
'Lorem IPsum dolor sit amet';
67 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
68 ->withDenotation(SystemInfo::DENOTATION_NEUTRAL);
72 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"il-system-info-headline" aria-describedby=
"il-system-info-headline">
73 <div
class=
"il-system-info-content-wrapper">
74 <div
class=
"il-system-info-content">
75 <span
class=
"il-system-info-headline">$headline</span>
76 <span
class=
"il-system-info-body">$information</span>
79 <div
class=
"il-system-info-actions">
80 <span
class=
"il-system-info-more">
81 <a
class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
83 <span
class=
"il-system-info-close"></span>
88 $actual = $r->render($system_info);
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ $sig_gen
The documentation for this class was generated from the following file: