Test on standard filter implementation.
More...
Test on standard filter implementation.
Definition at line 62 of file StandardFilterTest.php.
◆ buildButtonFactory()
StandardFilterTest::buildButtonFactory |
( |
| ) |
|
|
protected |
◆ buildFactory()
StandardFilterTest::buildFactory |
( |
| ) |
|
|
protected |
◆ buildInputFactory()
StandardFilterTest::buildInputFactory |
( |
| ) |
|
|
protected |
Definition at line 72 of file StandardFilterTest.php.
74 $df =
new Data\Factory();
75 $language = $this->createMock(\ilLanguage::class);
Class ChatMainBarProvider .
◆ buildLegacyFactory()
StandardFilterTest::buildLegacyFactory |
( |
| ) |
|
|
protected |
◆ buildListingFactory()
StandardFilterTest::buildListingFactory |
( |
| ) |
|
|
protected |
◆ buildPopoverFactory()
StandardFilterTest::buildPopoverFactory |
( |
| ) |
|
|
protected |
◆ buildSymbolFactory()
StandardFilterTest::buildSymbolFactory |
( |
| ) |
|
|
protected |
◆ getUIFactory()
StandardFilterTest::getUIFactory |
( |
| ) |
|
◆ test_render_activated_collapsed()
StandardFilterTest::test_render_activated_collapsed |
( |
| ) |
|
Definition at line 124 of file StandardFilterTest.php.
References Vendor\Package\$f, ILIAS\GlobalScreen\Provider\$if, apply(), WithNoUIFactories\button(), collapse(), expand(), and NoUIFactory\input().
128 $inputs = [
$if->text(
"Title"),
$if->select(
"Selection", [
"One",
"Two",
"Three"])];
129 $inputs_rendered = [
true,
false];
131 $filter =
$f->standard(
145 $html = $r->render($filter);
148 <div
class=
"il-filter enabled" id=
"id_1">
149 <form
class=
"il-standard-form form-horizontal" enctype=
"multipart/formdata" method=
"get" novalidate=
"novalidate" data-cmd-
expand=
"#" data-cmd-
collapse=
"#" data-cmd-
apply=
"#" data-cmd-toggleOn=
"#">
150 <div
class=
"il-filter-bar">
151 <span
class=
"il-filter-bar-opener" data-toggle=
"collapse" data-target=
".il-filter-inputs-active,.il-filter-input-section" aria-expanded=
"false">
152 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_2">
153 <span
class=
"glyph" aria-label=
"collapse_content"><span
class=
"glyphicon glyphicon-triangle-bottom" aria-hidden=
"true"></span></span>
154 <span
class=
"bulky-label">filter</span>
156 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_3">
157 <span
class=
"glyph" aria-label=
"expand_content"><span
class=
"glyphicon glyphicon-triangle-right" aria-hidden=
"true"></span></span>
158 <span
class=
"bulky-label">filter</span>
161 <span
class=
"il-filter-bar-controls">
162 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_4">
163 <span
class=
"glyph" aria-label=
"apply"><span
class=
"glyphicon glyphicon-ok" aria-hidden=
"true"></span></span>
164 <span
class=
"bulky-label">apply</span>
166 <button
class=
"btn btn-bulky" data-action=
"#" id=
"id_5">
167 <span
class=
"glyph" aria-label=
"reset"><span
class=
"glyphicon glyphicon-repeat" aria-hidden=
"true"></span></span>
168 <span
class=
"bulky-label">reset</span>
170 <button
class=
"il-toggle-button on" id=
"id_6" aria-pressed=
"false">
171 <div
class=
"il-toggle-switch"></div>
175 <div
class=
"il-filter-inputs-active clearfix collapse in"> <span
id=
"1"> </span> <span
id=
"2"> </span> </div>
176 <div
class=
"il-filter-input-section form-group row collapse ">
177 <div
class=
"col-md-4 il-popover-container">
178 <div
class=
"input-group">
179 <span
class=
"input-group-addon leftaddon">
Title</span>
180 <span role=
"button" tabindex=
"0" class=
"form-control il-filter-field" id=
"id_10" data-placement=
"bottom"></span>
181 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_8"></div>
182 <span
class=
"input-group-addon rightaddon">
183 <a
class=
"glyph" href=
"" aria-label=
"remove" id=
"id_11">
184 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
189 <div
class=
"col-md-4 il-popover-container">
190 <div
class=
"input-group">
191 <span
class=
"input-group-addon leftaddon">Selection</span>
192 <span role=
"button" tabindex=
"0" class=
"form-control il-filter-field" id=
"id_15" data-placement=
"bottom"></span>
193 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_13"></div>
194 <span
class=
"input-group-addon rightaddon">
195 <a
class=
"glyph" href=
"" aria-label=
"remove" id=
"id_16">
196 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
201 <div
class=
"col-md-4 il-popover-container">
202 <div
class=
"input-group">
203 <button
class=
"btn btn-bulky" id=
"id_21">
204 <span
class=
"glyph" aria-label=
"add">
205 <span
class=
"glyphicon glyphicon-plus-sign" aria-hidden=
"true"></span>
207 <span
class=
"bulky-label"></span>
210 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_19"></div>
213 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_0" value=
"1" />
214 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_1" value=
"0" />
getDefaultRenderer(JavaScriptBinding $js_binding=null)
assertHTMLEquals($expected_html_as_string, $html_as_string)
◆ test_render_activated_expanded()
StandardFilterTest::test_render_activated_expanded |
( |
| ) |
|
Definition at line 309 of file StandardFilterTest.php.
References Vendor\Package\$f, ILIAS\GlobalScreen\Provider\$if, apply(), WithNoUIFactories\button(), collapse(), expand(), and NoUIFactory\input().
313 $inputs = [
$if->text(
"Title"),
$if->select(
"Selection", [
"One",
"Two",
"Three"])];
314 $inputs_rendered = [
true,
false];
316 $filter =
$f->standard(
330 $html = $r->render($filter);
333 <div
class=
"il-filter enabled" id=
"id_1">
334 <form
class=
"il-standard-form form-horizontal" enctype=
"multipart/formdata" method=
"get" novalidate=
"novalidate" data-cmd-
expand=
"#" data-cmd-
collapse=
"#" data-cmd-
apply=
"#" data-cmd-toggleOn=
"#">
335 <div
class=
"il-filter-bar">
336 <span
class=
"il-filter-bar-opener" data-toggle=
"collapse" data-target=
".il-filter-inputs-active,.il-filter-input-section" aria-expanded=
"true">
337 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_2">
338 <span
class=
"glyph" aria-label=
"expand_content"><span
class=
"glyphicon glyphicon-triangle-right" aria-hidden=
"true"></span></span>
339 <span
class=
"bulky-label">filter</span>
341 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_3">
342 <span
class=
"glyph" aria-label=
"collapse_content"><span
class=
"glyphicon glyphicon-triangle-bottom" aria-hidden=
"true"></span></span>
343 <span
class=
"bulky-label">filter</span>
346 <span
class=
"il-filter-bar-controls">
347 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_4">
348 <span
class=
"glyph" aria-label=
"apply"><span
class=
"glyphicon glyphicon-ok" aria-hidden=
"true"></span></span>
349 <span
class=
"bulky-label">apply</span>
351 <button
class=
"btn btn-bulky" data-action=
"#" id=
"id_5">
352 <span
class=
"glyph" aria-label=
"reset"><span
class=
"glyphicon glyphicon-repeat" aria-hidden=
"true"></span></span>
353 <span
class=
"bulky-label">reset</span>
355 <button
class=
"il-toggle-button on" id=
"id_6" aria-pressed=
"false">
356 <div
class=
"il-toggle-switch"></div>
360 <div
class=
"il-filter-inputs-active clearfix collapse "> <span
id=
"1"> </span> <span
id=
"2"> </span> </div>
361 <div
class=
"il-filter-input-section form-group row collapse in">
362 <div
class=
"col-md-4 il-popover-container">
363 <div
class=
"input-group">
364 <span
class=
"input-group-addon leftaddon">
Title</span>
365 <span role=
"button" tabindex=
"0" class=
"form-control il-filter-field" id=
"id_10" data-placement=
"bottom"></span>
366 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_8"></div>
367 <span
class=
"input-group-addon rightaddon">
368 <a
class=
"glyph" href=
"" aria-label=
"remove" id=
"id_11">
369 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
374 <div
class=
"col-md-4 il-popover-container">
375 <div
class=
"input-group">
376 <span
class=
"input-group-addon leftaddon">Selection</span>
377 <span role=
"button" tabindex=
"0" class=
"form-control il-filter-field" id=
"id_15" data-placement=
"bottom"></span>
378 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_13"></div>
379 <span
class=
"input-group-addon rightaddon"><a
class=
"glyph" href=
"" aria-label=
"remove" id=
"id_16">
380 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
385 <div
class=
"col-md-4 il-popover-container">
386 <div
class=
"input-group">
387 <button
class=
"btn btn-bulky" id=
"id_21">
388 <span
class=
"glyph" aria-label=
"add">
389 <span
class=
"glyphicon glyphicon-plus-sign" aria-hidden=
"true"></span>
391 <span
class=
"bulky-label"></span>
394 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_19"></div>
397 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_0" value=
"1" />
398 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_1" value=
"0" />
getDefaultRenderer(JavaScriptBinding $js_binding=null)
assertHTMLEquals($expected_html_as_string, $html_as_string)
◆ test_render_deactivated_collapsed()
StandardFilterTest::test_render_deactivated_collapsed |
( |
| ) |
|
Definition at line 222 of file StandardFilterTest.php.
References Vendor\Package\$f, ILIAS\GlobalScreen\Provider\$if, apply(), WithNoUIFactories\button(), collapse(), disabled(), expand(), and NoUIFactory\input().
226 $inputs = [
$if->text(
"Title"),
$if->select(
"Selection", [
"One",
"Two",
"Three"])];
227 $inputs_rendered = [
true,
false];
229 $filter =
$f->standard(
243 $html = $r->render($filter);
246 <div
class=
"il-filter disabled" id=
"id_1">
247 <form
class=
"il-standard-form form-horizontal" enctype=
"multipart/formdata" method=
"get" novalidate=
"novalidate" data-cmd-
expand=
"#" data-cmd-
collapse=
"#" data-cmd-
apply=
"#" data-cmd-toggleOn=
"#">
248 <div
class=
"il-filter-bar">
249 <span
class=
"il-filter-bar-opener" data-toggle=
"collapse" data-target=
".il-filter-inputs-active,.il-filter-input-section" aria-expanded=
"false">
250 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_2">
251 <span
class=
"glyph" aria-label=
"collapse_content"><span
class=
"glyphicon glyphicon-triangle-bottom" aria-hidden=
"true"></span></span>
252 <span
class=
"bulky-label">filter</span>
254 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_3">
255 <span
class=
"glyph" aria-label=
"expand_content"><span
class=
"glyphicon glyphicon-triangle-right" aria-hidden=
"true"></span></span>
256 <span
class=
"bulky-label">filter</span>
259 <span
class=
"il-filter-bar-controls">
260 <button
class=
"btn btn-bulky" data-action=
"" disabled=
"disabled">
261 <span
class=
"glyph" aria-label=
"apply"><span
class=
"glyphicon glyphicon-ok" aria-hidden=
"true"></span></span>
262 <span
class=
"bulky-label">apply</span>
264 <button
class=
"btn btn-bulky" data-action=
"" disabled=
"disabled">
265 <span
class=
"glyph" aria-label=
"reset"><span
class=
"glyphicon glyphicon-repeat" aria-hidden=
"true"></span></span>
266 <span
class=
"bulky-label">reset</span>
268 <button
class=
"il-toggle-button off" id=
"id_4" aria-pressed=
"false">
269 <div
class=
"il-toggle-switch"></div>
273 <div
class=
"il-filter-inputs-active clearfix collapse in"></div>
274 <div
class=
"il-filter-input-section form-group row collapse ">
275 <div
class=
"col-md-4 il-popover-container">
276 <div
class=
"input-group">
277 <span
class=
"input-group-addon leftaddon">
Title</span>
278 <span role=
"button" class=
"form-control il-filter-field" data-placement=
"bottom"></span>
279 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_6"></div>
280 <span
class=
"input-group-addon rightaddon">
281 <a
class=
"glyph disabled" aria-label=
"remove" aria-
disabled=
"true">
282 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
287 <div
class=
"col-md-4 il-popover-container">
288 <div
class=
"input-group">
289 <span
class=
"input-group-addon leftaddon">Selection</span>
290 <span role=
"button" class=
"form-control il-filter-field" data-placement=
"bottom"></span>
291 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_9"></div>
292 <span
class=
"input-group-addon rightaddon">
293 <a
class=
"glyph disabled" aria-label=
"remove" aria-disabled=
"true">
294 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
300 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_0" value=
"1" />
301 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_1" value=
"0" />
getDefaultRenderer(JavaScriptBinding $js_binding=null)
disabled()
Example showing how to plug a disabled checkbox into a form.
assertHTMLEquals($expected_html_as_string, $html_as_string)
◆ test_render_deactivated_expanded()
StandardFilterTest::test_render_deactivated_expanded |
( |
| ) |
|
Definition at line 406 of file StandardFilterTest.php.
References Vendor\Package\$f, ILIAS\GlobalScreen\Provider\$if, apply(), WithNoUIFactories\button(), collapse(), disabled(), expand(), and NoUIFactory\input().
410 $inputs = [
$if->text(
"Title"),
$if->select(
"Selection", [
"One",
"Two",
"Three"])];
411 $inputs_rendered = [
true,
false];
413 $filter =
$f->standard(
427 $html = $r->render($filter);
430 <div
class=
"il-filter disabled" id=
"id_1">
431 <form
class=
"il-standard-form form-horizontal" enctype=
"multipart/formdata" method=
"get" novalidate=
"novalidate" data-cmd-
expand=
"#" data-cmd-
collapse=
"#" data-cmd-
apply=
"#" data-cmd-toggleOn=
"#">
432 <div
class=
"il-filter-bar">
433 <span
class=
"il-filter-bar-opener" data-toggle=
"collapse" data-target=
".il-filter-inputs-active,.il-filter-input-section" aria-expanded=
"true">
434 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_2">
435 <span
class=
"glyph" aria-label=
"expand_content"><span
class=
"glyphicon glyphicon-triangle-right" aria-hidden=
"true"></span></span>
436 <span
class=
"bulky-label">filter</span>
438 <button
class=
"btn btn-bulky" data-action=
"" id=
"id_3">
439 <span
class=
"glyph" aria-label=
"collapse_content"><span
class=
"glyphicon glyphicon-triangle-bottom" aria-hidden=
"true"></span></span>
440 <span
class=
"bulky-label">filter</span>
443 <span
class=
"il-filter-bar-controls">
444 <button
class=
"btn btn-bulky" data-action=
"" disabled=
"disabled">
445 <span
class=
"glyph" aria-label=
"apply"><span
class=
"glyphicon glyphicon-ok" aria-hidden=
"true"></span></span>
446 <span
class=
"bulky-label">apply</span>
448 <button
class=
"btn btn-bulky" data-action=
"" disabled=
"disabled">
449 <span
class=
"glyph" aria-label=
"reset"><span
class=
"glyphicon glyphicon-repeat" aria-hidden=
"true"></span></span>
450 <span
class=
"bulky-label">reset</span>
452 <button
class=
"il-toggle-button off" id=
"id_4" aria-pressed=
"false">
453 <div
class=
"il-toggle-switch"></div>
457 <div
class=
"il-filter-input-section form-group row collapse in">
458 <div
class=
"col-md-4 il-popover-container">
459 <div
class=
"input-group">
460 <span
class=
"input-group-addon leftaddon">
Title</span>
461 <span role=
"button" class=
"form-control il-filter-field" data-placement=
"bottom"></span>
462 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_6"></div>
463 <span
class=
"input-group-addon rightaddon"><a
class=
"glyph disabled" aria-label=
"remove" aria-
disabled=
"true">
464 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
469 <div
class=
"col-md-4 il-popover-container">
470 <div
class=
"input-group">
471 <span
class=
"input-group-addon leftaddon">Selection</span>
472 <span role=
"button" class=
"form-control il-filter-field" data-placement=
"bottom"></span>
473 <div
class=
"il-standard-popover-content" style=
"display:none;" id=
"id_9"></div>
474 <span
class=
"input-group-addon rightaddon"><a
class=
"glyph disabled" aria-label=
"remove" aria-disabled=
"true">
475 <span
class=
"glyphicon glyphicon-minus-sign" aria-hidden=
"true"></span>
481 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_0" value=
"1" />
482 <input
class=
"il-filter-field-status" type=
"hidden" name=
"__filter_status_1" value=
"0" />
getDefaultRenderer(JavaScriptBinding $js_binding=null)
disabled()
Example showing how to plug a disabled checkbox into a form.
assertHTMLEquals($expected_html_as_string, $html_as_string)
The documentation for this class was generated from the following file: