Test items groups.
More...
Test items groups.
Definition at line 13 of file ItemGroupTest.php.
◆ getFactory()
ItemGroupTest::getFactory |
( |
| ) |
|
◆ test_get_items()
ItemGroupTest::test_get_items |
( |
| ) |
|
Definition at line 47 of file ItemGroupTest.php.
References array, and getFactory().
52 $f->item()->standard(
"title1"),
53 $f->item()->standard(
"title2")
56 $c = $f->item()->group(
"group", $items);
58 $this->assertEquals($c->getItems(), $items);
Create styles array
The data for the language used.
◆ test_get_title()
ItemGroupTest::test_get_title |
( |
| ) |
|
Definition at line 36 of file ItemGroupTest.php.
References array, and getFactory().
39 $c = $f->item()->group(
"group",
array(
40 $f->item()->standard(
"title1"),
41 $f->item()->standard(
"title2")
44 $this->assertEquals($c->getTitle(),
"group");
Create styles array
The data for the language used.
◆ test_implements_factory_interface()
ItemGroupTest::test_implements_factory_interface |
( |
| ) |
|
Definition at line 24 of file ItemGroupTest.php.
References array, and getFactory().
28 $group = $f->item()->group(
"group",
array(
29 $f->item()->standard(
"title1"),
30 $f->item()->standard(
"title2")
33 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Item\\Group", $group);
Create styles array
The data for the language used.
◆ test_render_base()
ItemGroupTest::test_render_base |
( |
| ) |
|
Definition at line 79 of file ItemGroupTest.php.
References $html, $r, array, ILIAS_UI_TestBase\assertHTMLEquals(), ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
85 $f->item()->standard(
"title1"),
86 $f->item()->standard(
"title2")
89 $c = $f->item()->group(
"group", $items);
94 <div
class=
"il-item-group">
96 <div
class=
"il-item-group-items">
97 <div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
99 </div></div><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()
ItemGroupTest::test_render_with_actions |
( |
| ) |
|
Definition at line 108 of file ItemGroupTest.php.
References $html, $r, array, ILIAS_UI_TestBase\assertHTMLEquals(), data, ILIAS_UI_TestBase\getDefaultRenderer(), and getFactory().
113 $actions = $f->dropdown()->standard(
array(
114 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
115 $f->button()->shy(
"GitHub",
"https://www.github.com")
118 $f->item()->standard(
"title1"),
119 $f->item()->standard(
"title2")
122 $c = $f->item()->group(
"group", $items)->withActions($actions);
127 <div
class=
"il-item-group">
128 <h4>group</h4><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>
129 <ul
class=
"dropdown-menu">
130 <li><a
class=
"btn btn-link" href=
"https://www.ilias.de" data-action=
"https://www.ilias.de">
ILIAS</a></li>
131 <li><a
class=
"btn btn-link" href=
"https://www.github.com" data-action=
"https://www.github.com">GitHub</a></li>
134 <div
class=
"il-item-group-items">
135 <div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
137 </div></div><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_with_actions()
ItemGroupTest::test_with_actions |
( |
| ) |
|
Definition at line 61 of file ItemGroupTest.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")
70 $f->item()->standard(
"title1"),
71 $f->item()->standard(
"title2")
74 $c = $f->item()->group(
"group", $items)->withActions($actions);
76 $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: