Definition at line 31 of file DurationInputTest.php.
◆ buildFactory()
| DurationInputTest::buildFactory |
( |
| ) |
|
|
protected |
Definition at line 59 of file DurationInputTest.php.
References buildLanguage(), and buildRefinery().
Referenced by setUp().
59 : I\Input\Field\Factory
61 return new I\Input\Field\Factory(
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ buildLanguage()
| DurationInputTest::buildLanguage |
( |
| ) |
|
|
protected |
◆ buildRefinery()
| DurationInputTest::buildRefinery |
( |
| ) |
|
|
protected |
◆ getUIFactory()
| DurationInputTest::getUIFactory |
( |
| ) |
|
Definition at line 70 of file DurationInputTest.php.
References ILIAS\Repository\symbol().
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...
◆ setUp()
| DurationInputTest::setUp |
( |
| ) |
|
◆ testRender()
| DurationInputTest::testRender |
( |
| ) |
|
Definition at line 159 of file DurationInputTest.php.
References $datetime, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), and ILIAS_UI_TestBase\getDefaultRenderer().
161 $datetime = $this->factory->duration(
'label',
'byline');
164 $label_start =
'duration_default_label_start';
165 $label_end =
'duration_default_label_end';
169 <div class="form-group row"> 170 <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label> 171 <div class="col-sm-8 col-md-9 col-lg-10"> 172 <div class="il-input-duration" id="id_3"> 173 <div class="form-group row"> 174 <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">' . $label_start .
'</label> 175 <div class="col-sm-8 col-md-9 col-lg-10"> 176 <div class="input-group date il-input-datetime"><input id="id_1" type="date" class="form-control form-control-sm" /></div> 179 <div class="form-group row"> 180 <label for="id_2" class="control-label col-sm-4 col-md-3 col-lg-2">' . $label_end .
'</label> 181 <div class="col-sm-8 col-md-9 col-lg-10"> 182 <div class="input-group date il-input-datetime"><input id="id_2" type="date" class="form-control form-control-sm" /></div> 186 <div class="help-block">byline</div> 190 $this->assertEquals($expected, $html);
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
◆ testRenderWithDifferentLabels()
| DurationInputTest::testRenderWithDifferentLabels |
( |
|
$datetime | ) |
|
testRender
Definition at line 198 of file DurationInputTest.php.
References $datetime, $r, ILIAS_UI_TestBase\brutallyTrimHTML(), and ILIAS_UI_TestBase\getDefaultRenderer().
200 $other_start_label =
'other startlabel';
201 $other_end_label =
'other endlabel';
208 <div class="form-group row"> 209 <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">label</label> 210 <div class="col-sm-8 col-md-9 col-lg-10"> 211 <div class="il-input-duration" id="id_3"> 212 <div class="form-group row"> 213 <label for="id_1" class="control-label col-sm-4 col-md-3 col-lg-2">' . $other_start_label .
'</label> 214 <div class="col-sm-8 col-md-9 col-lg-10"> 215 <div class="input-group date il-input-datetime"><input id="id_1" type="date" class="form-control form-control-sm" /></div> 218 <div class="form-group row"> 219 <label for="id_2" class="control-label col-sm-4 col-md-3 col-lg-2">' . $other_end_label .
'</label> 220 <div class="col-sm-8 col-md-9 col-lg-10"> 221 <div class="input-group date il-input-datetime"><input id="id_2" type="date" class="form-control form-control-sm" /></div> 225 <div class="help-block">byline</div> 229 $this->assertEquals($expected, $html);
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
◆ testWithFormat()
| DurationInputTest::testWithFormat |
( |
| ) |
|
Definition at line 84 of file DurationInputTest.php.
References $duration.
86 $format = $this->data_factory->dateFormat()->germanShort();
87 $duration = $this->factory->duration(
'label',
'byline')
88 ->withFormat($format);
◆ testWithInvalidTimeZone()
| DurationInputTest::testWithInvalidTimeZone |
( |
| ) |
|
Definition at line 145 of file DurationInputTest.php.
References $datetime.
147 $this->expectException(InvalidArgumentException::class);
148 $datetime = $this->factory->duration(
'label',
'byline');
149 $tz =
'NOT/aValidTZ';
◆ testWithMaxValue()
| DurationInputTest::testWithMaxValue |
( |
| ) |
|
◆ testWithMinValue()
| DurationInputTest::testWithMinValue |
( |
| ) |
|
◆ testWithoutByline()
| DurationInputTest::testWithoutByline |
( |
| ) |
|
Definition at line 153 of file DurationInputTest.php.
References $datetime.
155 $datetime = $this->factory->duration(
'label');
156 $this->assertInstanceOf(
C\Input\Field\Duration::class,
$datetime);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ testWithTimeOnly()
| DurationInputTest::testWithTimeOnly |
( |
| ) |
|
◆ testWithTimeZone()
| DurationInputTest::testWithTimeZone |
( |
| ) |
|
◆ testWithUseTime()
| DurationInputTest::testWithUseTime |
( |
| ) |
|
◆ $data_factory
| Data Factory DurationInputTest::$data_factory |
|
protected |
◆ $factory
| I Input Field Factory DurationInputTest::$factory |
|
protected |
◆ $lng
◆ $name_source
The documentation for this class was generated from the following file: