19 declare(strict_types=1);
21 require_once(
"libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../Base.php");
42 $f =
new I\Link\Factory();
44 $f->standard(
"Goto ILIAS",
"http://www.ilias.de"),
45 $f->standard(
"go up",
"#")
47 $this->text =
'footer text';
48 $this->perm_url =
'http://www.ilias.de/goto.php?target=xxx_123';
54 $counter_factory =
new I\Counter\Factory();
55 $slate_factory =
new I\MainControls\Slate\Factory(
64 return new I\MainControls\Factory($sig_gen, $slate_factory);
69 $footer = $this->
getFactory()->footer($this->links, $this->text);
70 $this->assertInstanceOf(
71 "ILIAS\\UI\\Component\\MainControls\\Footer",
79 $footer = $this->
getFactory()->footer([], $this->text);
80 $this->assertInstanceOf(
81 "ILIAS\\UI\\Component\\MainControls\\Footer",
114 $bf =
new I\Button\Factory();
119 $shyButton1 = $bf->shy(
'Button1',
'#');
120 $shyButton2 = $bf->shy(
'Button2',
'#');
122 $modal1 = $mf->roundtrip(
'Modal1', $legacy);
123 $modal2 = $mf->roundtrip(
'Modal2', $legacy);
126 ->withAdditionalModalAndTrigger($modal1, $shyButton1)
127 ->withAdditionalModalAndTrigger($modal2, $shyButton2);
129 $this->assertCount(2, $footer->getModals());
139 $df =
new Data\Factory();
140 $footer = $footer->withPermanentURL($df->uri($this->perm_url));
141 $perm_url = $footer->getPermanentURL();
142 $this->assertInstanceOf(
"\\ILIAS\\Data\\URI", $perm_url);
144 $perm_url->getBaseURI() .
'?' . $perm_url->getQuery(),
153 public function listing(): C\Listing\Factory
155 return new I\Listing\Factory();
158 public function button(): C\Button\Factory
160 return new I\Button\Factory();
171 $html =
$r->render($footer);
174 <div
class=
"il-maincontrols-footer">
175 <div
class=
"il-footer-content">
176 <div
class=
"il-footer-text">
180 <div
class=
"il-footer-links">
182 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
183 <li><a href=
"#" >go
up</a></li>
202 $html =
$r->render($footer);
205 <div
class=
"il-maincontrols-footer">
206 <div
class=
"il-footer-content">
207 <div
class=
"il-footer-text">
226 $html =
$r->render($footer);
229 <div
class=
"il-maincontrols-footer">
230 <div
class=
"il-footer-content">
231 <div
class=
"il-footer-permanent-url c-tooltip__container c-tooltip--top" aria-live=
"polite">
232 <
button class=
"btn btn-link" data-action=
"" id=
"id_1">copy_perma_link</
button>
233 <div
class=
"c-tooltip c-tooltip--hidden" role=
"tooltip"> perma_link_copied</div>
236 <div
class=
"il-footer-text">
footer text</div>
238 <div
class=
"il-footer-links">
240 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
241 <li><a href=
"#" >go
up</a></li>
260 $html =
$r->render($footer);
263 <div
class=
"il-maincontrols-footer">
264 <div
class=
"il-footer-content">
265 <div
class=
"il-footer-text">
footer text</div>
267 <div
class=
"il-footer-links">
269 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
270 <li><a href=
"#" >go
up</a></li>
271 <li><
button class=
"btn btn-link" id=
"id_1" >Button1</button></li>
272 <li><button
class=
"btn btn-link" id=
"id_2">Button2</button></li>
276 <div
class=
"il-footer-modals">
277 <div
class=
"modal fade il-modal-roundtrip" tabindex=
"-1" role=
"dialog" id=
"id_3">
278 <div
class=
"modal-dialog" role=
"document" data-replace-marker=
"component">
279 <div
class=
"modal-content">
280 <div
class=
"modal-header">
281 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"close">
282 <span aria-hidden=
"true">×</span>
284 <h1
class=
"modal-title">Modal1</h1>
286 <div
class=
"modal-body">PhpUnit</div>
287 <div
class=
"modal-footer">
288 <button
class=
"btn btn-default" data-dismiss=
"modal">cancel</button>
293 <div
class=
"modal fade il-modal-roundtrip" tabindex=
"-1" role=
"dialog" id=
"id_5">
294 <div
class=
"modal-dialog" role=
"document" data-replace-marker=
"component">
295 <div
class=
"modal-content">
296 <div
class=
"modal-header">
297 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"close">
298 <span aria-hidden=
"true">×</span>
300 <h1
class=
"modal-title">Modal2</h1>
302 <div
class=
"modal-body">PhpUnit</div>
303 <div
class=
"modal-footer">
304 <button
class=
"btn btn-default" data-dismiss=
"modal">cancel</button>
321 $group_mock = $this->createMock(Group::class);
322 $group_mock->method(
'withNameFrom')->willReturnSelf();
324 $factory_mock = $this->createMock(FieldFactory::class);
325 $factory_mock->method(
'group')->willReturn($group_mock);
327 return new I\Modal\Factory(
329 $this->createMock(
C\
Modal\InterruptiveItem\Factory::class),
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
button(string $caption, string $cmd)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
Provides common functionality for UI tests.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...