3 declare(strict_types=1);
21 require_once(__DIR__ .
'/ModalBase.php');
33 $this->assertEquals(
'myTitle', $roundtrip->getTitle());
40 $this->assertEquals([$content], $roundtrip->getContent());
43 $this->assertEquals($content, $roundtrip->getContent());
53 $roundtrip = $roundtrip->withActionButtons($action_buttons);
54 $this->assertEquals($action_buttons, $roundtrip->getActionButtons());
64 $roundtrip2 = $roundtrip->withActionButtons($action_buttons);
65 $this->assertCount(0, $roundtrip->getActionButtons());
66 $this->assertCount(2, $roundtrip2->getActionButtons());
67 $this->assertEquals($action_buttons, $roundtrip2->getActionButtons());
85 <div
class=
"modal fade il-modal-roundtrip" tabindex=
"-1" role=
"dialog" id=
"id_1">
86 <div
class=
"modal-dialog" role=
"document" data-replace-marker=
"component">
87 <div
class=
"modal-content">
88 <div
class=
"modal-header">
89 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"close"><span aria-hidden=
"true"></span></button><span
class=
"modal-title">
Title</span>
91 <div
class=
"modal-body">Content</div>
92 <div
class=
"modal-footer">
93 <button
class=
"btn btn-default btn-primary" data-action=
"">
Action 1</button>
94 <button
class=
"btn btn-default" data-action=
"">
Action 2</button>
95 <button
class=
"btn btn-default" data-dismiss=
"modal">cancel</button>
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
standard()
This is an example, of how the Notification Slate is generated by assigning Notification Items to it...
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
test_get_action_buttons()
Base class for modal tests.
test_with_action_buttons()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...