Tests for the Renderer of DataTables.
More...
Tests for the Renderer of DataTables.
Definition at line 31 of file OrderingRendererTest.php.
◆ getRenderer()
| OrderingRendererTest::getRenderer |
( |
| ) |
|
|
private |
◆ testOrderingTableRenderTableHeaderWithoutActions()
| OrderingRendererTest::testOrderingTableRenderTableHeaderWithoutActions |
( |
| ) |
|
Definition at line 47 of file OrderingRendererTest.php.
References $data, Vendor\Package\$f, $renderer, ILIAS\Repository\button(), ILIAS\Repository\form(), TableRendererTestBase\getColumnFactory(), TableRendererTestBase\getDummyRequest(), getRenderer(), and TableRendererTestBase\getUIFactory().
50 $data_factory = new \ILIAS\Data\Factory();
51 $tpl = $this->getTemplateFactory()->getTemplate(
"components/ILIAS/UI/src/templates/default/Table/tpl.orderingtable.html",
true,
true);
54 public function getRows(
55 Component\Table\OrderingRowBuilder $row_builder,
56 array $visible_column_ids
64 'f1' =>
$f->text(
"Field 1")->withIndex(1),
65 'f2' =>
$f->text(
"Field 2")->withIndex(2),
66 'f3' =>
$f->number(
"Field 3")->withIndex(3)
68 $uri =
new Data\URI(
'https://localhost');
72 $actual =
$renderer->renderOrderingTable($table, $this->getDefaultRenderer());
74 <div
class=
"c-table-ordering" id=
"id_1"><h2
class=
"ilHeader" id=
"id_1_label"></h2>
75 <div
class=
"viewcontrols">
76 <
form class=
"il-viewcontrols-form l-bar__space-keeper" method=
"get" id=
"id_2"></
form>
78 <
form method=
"post" class=
"c-table-data__table-wrapper c-table-ordering__form" action=
"https://localhost">
79 <table
class=
"c-table-data__table" aria-labelledby=
"id_1_label" aria-colcount=
"5" role=
"grid">
81 <tr
class=
"c-table-data__header c-table-data__row">
82 <th
class=
"c-table-data__header c-table-data__cell c-table-data__header__rowselection" tabindex=
"-1" aria-colindex=
"1"></th>
83 <th
class=
"c-table-data__header c-table-data__cell c-table-data__cell--number" tabindex=
"-1" aria-colindex=
"2">
84 <div
class=
"c-table-data__header__resize-wrapper">table_posinput_col_title</div>
86 <th
class=
"c-table-data__header c-table-data__cell c-table-data__cell--text" tabindex=
"-1" aria-colindex=
"3">
87 <div
class=
"c-table-data__header__resize-wrapper">Field 1</div>
89 <th
class=
"c-table-data__header c-table-data__cell c-table-data__cell--text" tabindex=
"-1" aria-colindex=
"4">
90 <div
class=
"c-table-data__header__resize-wrapper">Field 2</div>
92 <th
class=
"c-table-data__header c-table-data__cell c-table-data__cell--number" tabindex=
"-1" aria-colindex=
"5">
93 <div
class=
"c-table-data__header__resize-wrapper">Field 3</div>
97 <tbody
class=
"c-table-data__body">
99 <td
class=
"c-table-data__cell c-table-data__cell--multiaction" colspan=
"5">
100 <div
class=
"l-bar__space-keeper">
101 <div
class=
"l-bar__element">
102 <div
class=
"c-table-data__multiaction-triggerer"></div>
104 <div
class=
"l-bar__element">
105 <
button class=
"btn btn-default" data-action=
"" id=
"id_1">sorting_save</
button>
113 <div
class=
"c-table-data__async_modal_container"></div>
114 <div
class=
"c-table-data__async_message modal" role=
"dialog" id=
"id_1_msgmodal">
115 <div
class=
"modal-dialog" role=
"document">
116 <div
class=
"modal-content">
117 <div
class=
"modal-header">
118 <
button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"close">
119 <span aria-hidden=
"true">×</span></
button>
121 <div
class=
"c-table-data__async_messageresponse modal-body"></div>
127 $this->assertEquals($this->brutallyTrimHTML($expected), $this->brutallyTrimHTML($actual));
button(string $caption, string $cmd)
Interface Observer Contains several chained tasks and infos about them.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
form( $class_path, string $cmd, string $submit_caption="")
The documentation for this class was generated from the following file: