Tests for the Footer.
More...
Tests for the Footer.
Definition at line 15 of file FooterTest.php.
◆ getFactory()
FooterTest::getFactory |
( |
| ) |
|
|
protected |
Definition at line 32 of file FooterTest.php.
References $factory.
Referenced by testConstruction(), and testConstructionNoLinks().
35 $counter_factory =
new I\Counter\Factory();
36 $slate_factory =
new I\MainControls\Slate\Factory(
40 new I\Symbol\Icon\Factory(),
41 new I\Symbol\Glyph\Factory(),
42 new I\Symbol\Avatar\Factory()
45 $factory =
new I\MainControls\Factory($sig_gen, $slate_factory);
◆ getUIFactory()
FooterTest::getUIFactory |
( |
| ) |
|
Definition at line 132 of file FooterTest.php.
References $factory.
135 public function listing()
137 return new I\Listing\Factory();
◆ setUp()
Definition at line 21 of file FooterTest.php.
References Vendor\Package\$f.
23 $f =
new I\Link\Factory();
25 $f->standard(
"Goto ILIAS",
"http://www.ilias.de"),
26 $f->standard(
"go up",
"#")
28 $this->text =
'footer text';
29 $this->perm_url =
'http://www.ilias.de/goto.php?target=xxx_123';
◆ testConstruction()
FooterTest::testConstruction |
( |
| ) |
|
Definition at line 49 of file FooterTest.php.
References getFactory().
51 $footer = $this->
getFactory()->footer($this->links, $this->text);
52 $this->assertInstanceOf(
53 "ILIAS\\UI\\Component\\MainControls\\Footer",
◆ testConstructionNoLinks()
FooterTest::testConstructionNoLinks |
( |
| ) |
|
Definition at line 59 of file FooterTest.php.
References getFactory().
61 $footer = $this->
getFactory()->footer([], $this->text);
62 $this->assertInstanceOf(
63 "ILIAS\\UI\\Component\\MainControls\\Footer",
◆ testGetAndSetModalsWithTrigger()
FooterTest::testGetAndSetModalsWithTrigger |
( |
C\MainControls\Footer |
$footer | ) |
|
testConstruction
Definition at line 94 of file FooterTest.php.
96 $bf =
new I\Button\Factory();
98 $mf =
new I\Modal\Factory($signalGenerator);
101 $shyButton1 = $bf->shy(
'Button1',
'#');
102 $shyButton2 = $bf->shy(
'Button2',
'#');
104 $modal1 = $mf->roundtrip(
'Modal1', $legacy);
105 $modal2 = $mf->roundtrip(
'Modal2', $legacy);
108 ->withAdditionalModalAndTrigger($modal1, $shyButton1)
109 ->withAdditionalModalAndTrigger($modal2, $shyButton2);
111 $this->assertCount(2, $footer->getModals());
◆ testGetLinks()
FooterTest::testGetLinks |
( |
|
$footer | ) |
|
◆ testGetText()
FooterTest::testGetText |
( |
|
$footer | ) |
|
◆ testPermanentURL()
FooterTest::testPermanentURL |
( |
|
$footer | ) |
|
testConstruction
Definition at line 119 of file FooterTest.php.
References $perm_url.
121 $df = new \ILIAS\Data\Factory();
122 $footer = $footer->withPermanentURL($df->uri($this->perm_url));
124 $this->assertInstanceOf(
"\\ILIAS\\Data\\URI",
$perm_url);
◆ testRendering()
FooterTest::testRendering |
( |
|
$footer | ) |
|
testConstruction
Definition at line 146 of file FooterTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), footer(), ILIAS_UI_TestBase\getDefaultRenderer(), and up().
149 $html = $r->render($footer);
152 <div
class=
"il-maincontrols-footer">
153 <div
class=
"il-footer-content">
154 <div
class=
"il-footer-text">
158 <div
class=
"il-footer-links">
160 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
161 <li><a href=
"#" >go
up</a></li>
Class ChatMainBarProvider .
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ testRenderingModalsWithTriggers()
FooterTest::testRenderingModalsWithTriggers |
( |
C\MainControls\Footer |
$footer | ) |
|
testGetAndSetModalsWithTrigger
Definition at line 233 of file FooterTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), footer(), ILIAS_UI_TestBase\getDefaultRenderer(), and up().
236 $html = $r->render($footer);
239 <div
class=
"il-maincontrols-footer">
240 <div
class=
"il-footer-content">
241 <div
class=
"il-footer-text">
footer text</div>
243 <div
class=
"il-footer-links">
245 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
246 <li><a href=
"#" >go
up</a></li>
247 <li><button
class=
"btn btn-link" id=
"id_1" >Button1</button></li>
248 <li><button
class=
"btn btn-link" id=
"id_2">Button2</button></li>
252 <div
class=
"il-footer-modals">
253 <div
class=
"modal fade il-modal-roundtrip" tabindex=
"-1" role=
"dialog" id=
"id_3">
254 <div
class=
"modal-dialog" role=
"document" data-replace-marker=
"component">
255 <div
class=
"modal-content">
256 <div
class=
"modal-header">
257 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"Close">
258 <span aria-hidden=
"true">×</span>
260 <span
class=
"modal-title">Modal1</span>
262 <div
class=
"modal-body">PhpUnit</div>
263 <div
class=
"modal-footer">
264 <button
class=
"btn btn-default" data-dismiss=
"modal" aria-label=
"Close">cancel</button>
269 <div
class=
"modal fade il-modal-roundtrip" tabindex=
"-1" role=
"dialog" id=
"id_5">
270 <div
class=
"modal-dialog" role=
"document" data-replace-marker=
"component">
271 <div
class=
"modal-content">
272 <div
class=
"modal-header">
273 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"Close">
274 <span aria-hidden=
"true">×</span>
276 <span
class=
"modal-title">Modal2</span>
278 <div
class=
"modal-body">PhpUnit</div>
279 <div
class=
"modal-footer">
280 <button
class=
"btn btn-default" data-dismiss=
"modal" aria-label=
"Close">cancel</button>
Class ChatMainBarProvider .
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ testRenderingNoLinks()
FooterTest::testRenderingNoLinks |
( |
|
$footer | ) |
|
◆ testRenderingPermUrl()
FooterTest::testRenderingPermUrl |
( |
|
$footer | ) |
|
testPermanentURL
Definition at line 201 of file FooterTest.php.
References ILIAS_UI_TestBase\brutallyTrimHTML(), footer(), ILIAS_UI_TestBase\getDefaultRenderer(), and up().
204 $html = $r->render($footer);
207 <div
class=
"il-maincontrols-footer">
208 <div
class=
"il-footer-content">
209 <div
class=
"il-footer-permanent-url"><label
for=
"current_perma_link">perma_link</label><input
id=
"current_perma_link" type=
"text" value=
"http://www.ilias.de/goto.php?target=xxx_123" readonly=
"readOnly">
212 <div
class=
"il-footer-text">
footer text</div>
214 <div
class=
"il-footer-links">
216 <li><a href=
"http://www.ilias.de" >Goto
ILIAS</a></li>
217 <li><a href=
"#" >go
up</a></li>
Class ChatMainBarProvider .
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])
◆ $links
◆ $perm_url
FooterTest::$perm_url = '' |
|
private |
◆ $text
The documentation for this class was generated from the following file: