Class SystemInfoTest.
More...
◆ getDefaultRenderer()
SystemInfoTest::getDefaultRenderer |
( |
?JavaScriptBinding |
$js_binding = null , |
|
|
array |
$with_stub_renderings = [] , |
|
|
array |
$with_additional_contexts = [] |
|
) |
| |
◆ getUIFactory()
SystemInfoTest::getUIFactory |
( |
| ) |
|
◆ setUp()
SystemInfoTest::setUp |
( |
| ) |
|
◆ testRenderingBreaking()
SystemInfoTest::testRenderingBreaking |
( |
| ) |
|
Definition at line 142 of file SystemInfoTest.php.
References $r, ILIAS\UI\examples\Symbol\Glyph\Close\close(), and getDefaultRenderer().
144 $headline =
'That\'s one small step for [a] man';
145 $information =
'Lorem IPsum dolor sit amet';
147 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
148 ->withDenotation(SystemInfoAlias::DENOTATION_BREAKING);
152 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-breaking" data-
close-uri=
"" role=
"alert" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
153 <div
class=
"il-system-info-content-wrapper">
154 <div
class=
"il-system-info-content">
155 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
156 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
159 <div
class=
"il-system-info-actions">
160 <span
class=
"il-system-info-more">
161 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
163 <span
class=
"il-system-info-close"></span>
168 $actual =
$r->render($system_info);
170 $this->brutallyTrimHTML($expected),
171 $this->brutallyTrimHTML($actual)
getDefaultRenderer(?JavaScriptBinding $js_binding=null, array $with_stub_renderings=[], array $with_additional_contexts=[],)
close()
description: > Example for rendring a close glyph.
◆ testRenderingCloseAction()
SystemInfoTest::testRenderingCloseAction |
( |
| ) |
|
Definition at line 176 of file SystemInfoTest.php.
References $r, ILIAS\UI\examples\Symbol\Glyph\Close\close(), and getDefaultRenderer().
178 $headline =
'That\'s one small step for [a] man';
179 $information =
'Lorem IPsum dolor sit amet';
180 $uri_string =
'http://one_giant_leap?for=mankind';
181 $action =
new URI($uri_string);
183 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
184 ->withDismissAction($action);
187 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"$uri_string" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
188 <div
class=
"il-system-info-content-wrapper">
189 <div
class=
"il-system-info-content">
190 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
191 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
194 <div
class=
"il-system-info-actions">
195 <span
class=
"il-system-info-more">
196 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
198 <span
class=
"il-system-info-close"><a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"close" id=
"id"><span
class=
"glyphicon glyphicon-remove" aria-hidden=
"true"></span></a></span>
203 $actual =
$r->render($system_info);
205 $this->brutallyTrimHTML($expected),
206 $this->brutallyTrimHTML($actual)
getDefaultRenderer(?JavaScriptBinding $js_binding=null, array $with_stub_renderings=[], array $with_additional_contexts=[],)
close()
description: > Example for rendring a close glyph.
◆ testRenderingDefault()
SystemInfoTest::testRenderingDefault |
( |
| ) |
|
Definition at line 45 of file SystemInfoTest.php.
References $r, ILIAS\UI\examples\Symbol\Glyph\Close\close(), and getDefaultRenderer().
47 $headline =
'That\'s one small step for [a] man';
48 $information =
'Lorem IPsum dolor sit amet';
50 $system_info =
new SystemInfo($this->sig_gen, $headline, $information);
54 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
55 <div
class=
"il-system-info-content-wrapper">
56 <div
class=
"il-system-info-content">
57 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
58 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
61 <div
class=
"il-system-info-actions">
62 <span
class=
"il-system-info-more">
63 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
65 <span
class=
"il-system-info-close"></span>
70 $actual =
$r->render($system_info);
72 $this->brutallyTrimHTML($expected),
73 $this->brutallyTrimHTML($actual)
getDefaultRenderer(?JavaScriptBinding $js_binding=null, array $with_stub_renderings=[], array $with_additional_contexts=[],)
close()
description: > Example for rendring a close glyph.
◆ testRenderingImportant()
SystemInfoTest::testRenderingImportant |
( |
| ) |
|
Definition at line 110 of file SystemInfoTest.php.
References $r, ILIAS\UI\examples\Symbol\Glyph\Close\close(), and getDefaultRenderer().
112 $headline =
'That\'s one small step for [a] man';
113 $information =
'Lorem IPsum dolor sit amet';
115 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
116 ->withDenotation(SystemInfoAlias::DENOTATION_IMPORTANT);
118 $actual =
$r->render($system_info);
120 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-important" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
121 <div
class=
"il-system-info-content-wrapper">
122 <div
class=
"il-system-info-content">
123 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
124 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
127 <div
class=
"il-system-info-actions">
128 <span
class=
"il-system-info-more">
129 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
131 <span
class=
"il-system-info-close"></span>
137 $this->brutallyTrimHTML($expected),
138 $this->brutallyTrimHTML($actual)
getDefaultRenderer(?JavaScriptBinding $js_binding=null, array $with_stub_renderings=[], array $with_additional_contexts=[],)
close()
description: > Example for rendring a close glyph.
◆ testRenderingNeutral()
SystemInfoTest::testRenderingNeutral |
( |
| ) |
|
Definition at line 77 of file SystemInfoTest.php.
References $r, ILIAS\UI\examples\Symbol\Glyph\Close\close(), and getDefaultRenderer().
79 $headline =
'That\'s one small step for [a] man';
80 $information =
'Lorem IPsum dolor sit amet';
82 $system_info = (
new SystemInfo($this->sig_gen, $headline, $information))
83 ->withDenotation(SystemInfoAlias::DENOTATION_NEUTRAL);
87 <div
id=
"id" class=
"container-fluid il-system-info il-system-info-neutral" data-
close-uri=
"" aria-live=
"polite" aria-labelledby=
"id_headline" aria-describedby=
"id_description">
88 <div
class=
"il-system-info-content-wrapper">
89 <div
class=
"il-system-info-content">
90 <span
id=
"id_headline" class=
"il-system-info-headline">$headline</span>
91 <span
id=
"id_description" class=
"il-system-info-body">$information</span>
94 <div
class=
"il-system-info-actions">
95 <span
class=
"il-system-info-more">
96 <a tabindex=
"0" class=
"glyph" href=
"#" aria-label=
"show_more"><span
class=
"glyphicon glyphicon-option-horizontal" aria-hidden=
"true"></span></a>
98 <span
class=
"il-system-info-close"></span>
103 $actual =
$r->render($system_info);
105 $this->brutallyTrimHTML($expected),
106 $this->brutallyTrimHTML($actual)
getDefaultRenderer(?JavaScriptBinding $js_binding=null, array $with_stub_renderings=[], array $with_additional_contexts=[],)
close()
description: > Example for rendring a close glyph.
◆ $sig_gen
The documentation for this class was generated from the following file: