3 require_once(__DIR__ .
'/ModalBase.php');
15 $this->assertEquals(
'myTitle', $roundtrip->getTitle());
22 $this->assertEquals([$content], $roundtrip->getContent());
25 $this->assertEquals($content, $roundtrip->getContent());
35 $roundtrip = $roundtrip->withActionButtons($action_buttons);
36 $this->assertEquals($action_buttons, $roundtrip->getActionButtons());
46 $roundtrip2 = $roundtrip->withActionButtons($action_buttons);
47 $this->assertEquals(0, count($roundtrip->getActionButtons()));
48 $this->assertEquals(2, count($roundtrip2->getActionButtons()));
49 $this->assertEquals($action_buttons, $roundtrip2->getActionButtons());
69 <div
class=
"modal fade il-modal-roundtrip" tabindex=
"-1" role=
"dialog" id=
"id_1"><div
class=
"modal-dialog" role=
"document" data-replace-marker=
"component"><div
class=
"modal-content">
70 <div
class=
"modal-header">
71 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"Close"><span aria-hidden=
"true"></span></button><h4
class=
"modal-title">
Title</h4>
73 <div
class=
"modal-body">Content</div>
74 <div
class=
"modal-footer">
75 <button
class=
"btn btn-default btn-primary" data-action=
"">Action 1</button><button
class=
"btn btn-default" data-action=
"">Action 2</button><
a class=
"btn btn-default" data-dismiss=
"modal" aria-label=
"Close">cancel</a>
getDefaultRenderer(JavaScriptBinding $js_binding=null)
test_get_action_buttons()
Base class for modal tests.
test_with_action_buttons()
assertHTMLEquals($expected_html_as_string, $html_as_string)
Tests on implementation for the roundtrip modal.