5 require_once(__DIR__ .
"/../../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../../Base.php");
29 $f->text(
"input1",
"in 1"),
30 $f->text(
"input2",
"in 2")
32 $label =
'section label';
33 $byline =
'section byline';
34 $section =
$f->section($inputs, $label, $byline);
37 <div
class=
"il-section-input">
38 <div
class=
"il-section-input-header">
39 <h2>section label</h2>
40 <div
class=
"il-section-input-header-byline">section byline</div>
42 <div
class=
"form-group row">
43 <label
for=
"id_1" class=
"control-label col-sm-3">input1</label>
44 <div
class=
"col-sm-9">
45 <input
id=
"id_1" type=
"text" name=
"" class=
"form-control form-control-sm" />
46 <div
class=
"help-block">in 1</div>
49 <div
class=
"form-group row">
50 <label
for=
"id_2" class=
"control-label col-sm-3">input2</label>
51 <div
class=
"col-sm-9">
52 <input
id=
"id_2" type=
"text" name=
"" class=
"form-control form-control-sm" />
53 <div
class=
"help-block">in 2</div>
59 $this->assertEquals($expected, $actual);
67 $f->text(
"input1",
"in 1")
69 $label =
'section label';
70 $byline =
'section byline';
71 $section =
$f->section($inputs, $label, $byline);
74 <div
class=
"il-section-input">
75 <div
class=
"il-section-input-header">
76 <h2>section label</h2>
77 <div
class=
"il-section-input-header-byline">section byline</div>
79 <div
class=
"help-block alert alert-danger" role=
"alert"> Some
Error </div>
80 <div
class=
"form-group row">
81 <label
for=
"id_1" class=
"control-label col-sm-3">input1</label>
82 <div
class=
"col-sm-9">
83 <input
id=
"id_1" type=
"text" name=
"" class=
"form-control form-control-sm" />
84 <div
class=
"help-block">in 1</div>
90 $this->assertEquals($expected, $actual);
Provides common functionality for UI tests.
brutallyTrimHTML($html)
A more radical version of normalizeHTML.
A result encapsulates a value or an error and simplifies the handling of those.
getDefaultRenderer(JavaScriptBinding $js_binding=null, $with_stub_renderings=[])