Test listing panels.
More...
Test listing panels.
Definition at line 13 of file PanelListingTest.php.
◆ getFactory()
PanelListingTest::getFactory |
( |
| ) |
|
◆ test_get_title_get_groups()
PanelListingTest::test_get_title_get_groups |
( |
| ) |
|
Definition at line 41 of file PanelListingTest.php.
References array, and getFactory().
46 $f->item()->group(
"Subtitle 1",
array(
47 $f->item()->standard(
"title1"),
48 $f->item()->standard(
"title2")
50 $f->item()->group(
"Subtitle 2",
array(
51 $f->item()->standard(
"title3")
55 $c = $f->panel()->listing()->standard(
"title", $groups);
57 $this->assertEquals($c->getTitle(),
"title");
58 $this->assertEquals($c->getItemGroups(), $groups);
Create styles array
The data for the language used.
◆ test_implements_factory_interface()
PanelListingTest::test_implements_factory_interface |
( |
| ) |
|
Definition at line 24 of file PanelListingTest.php.
References array, and getFactory().
28 $std_list = $f->panel()->listing()->standard(
"List Title",
array(
29 $f->item()->group(
"Subtitle 1",
array(
30 $f->item()->standard(
"title1"),
31 $f->item()->standard(
"title2")
33 $f->item()->group(
"Subtitle 2",
array(
34 $f->item()->standard(
"title3")
38 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Panel\\Listing\\Standard", $std_list);
Create styles array
The data for the language used.
◆ test_render_base()
PanelListingTest::test_render_base |
( |
| ) |
|
Definition at line 78 of file PanelListingTest.php.
References $html, $r, array, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
84 $f->item()->group(
"Subtitle 1",
array(
85 $f->item()->standard(
"title1"),
86 $f->item()->standard(
"title2")
88 $f->item()->group(
"Subtitle 2",
array(
89 $f->item()->standard(
"title3")
93 $c = $f->panel()->listing()->standard(
"title", $groups);
98 <div
class=
"il-panel-listing-std-container clearfix">
100 <div
class=
"il-item-group">
102 <div
class=
"il-item-group-items">
103 <div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
105 </div></div><div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
109 </div><div
class=
"il-item-group">
111 <div
class=
"il-item-group-items">
112 <div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
getDefaultRenderer(JavaScriptBinding $js_binding=null)
assertHTMLEquals($expected_html_as_string, $html_as_string)
Create styles array
The data for the language used.
◆ test_render_with_actions()
PanelListingTest::test_render_with_actions |
( |
| ) |
|
Definition at line 122 of file PanelListingTest.php.
References $html, $r, array, ILIAS_UI_TestBase\assertHTMLEquals(), data, ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
129 $actions = $f->dropdown()->standard(
array(
130 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
131 $f->button()->shy(
"GitHub",
"https://www.github.com")
134 $c = $f->panel()->listing()->standard(
"title", $groups)
135 ->withActions($actions);
140 <div
class=
"il-panel-listing-std-container clearfix">
141 <h3>title</h3><div
class=
"dropdown"><button
class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown" aria-haspopup=
"true" aria-expanded=
"false"> <span
class=
"caret"></span></button>
142 <ul
class=
"dropdown-menu">
143 <li><a
class=
"btn btn-link" href=
"https://www.ilias.de" data-action=
"https://www.ilias.de">
ILIAS</a></li>
144 <li><a
class=
"btn btn-link" href=
"https://www.github.com" data-action=
"https://www.github.com">GitHub</a></li>
getDefaultRenderer(JavaScriptBinding $js_binding=null)
assertHTMLEquals($expected_html_as_string, $html_as_string)
Create styles array
The data for the language used.
◆ test_with_actions()
PanelListingTest::test_with_actions |
( |
| ) |
|
Definition at line 61 of file PanelListingTest.php.
References array, and getFactory().
65 $actions = $f->dropdown()->standard(
array(
66 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
67 $f->button()->shy(
"GitHub",
"https://www.github.com")
72 $c = $f->panel()->listing()->standard(
"title", $groups)
73 ->withActions($actions);
75 $this->assertEquals($c->getActions(), $actions);
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: