Definition at line 33 of file DurationInputTest.php.
◆ buildFactory()
| DurationInputTest::buildFactory |
( |
| ) |
|
|
protected |
Definition at line 63 of file DurationInputTest.php.
References buildLanguage(), and buildRefinery().
Referenced by setUp().
63 : I\Input\Field\Factory
65 return new I\Input\Field\Factory(
Interface Observer Contains several chained tasks and infos about them.
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 74 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 |
( |
| ) |
|
◆ testCommonRendering()
| DurationInputTest::testCommonRendering |
( |
| ) |
|
◆ testRender()
| DurationInputTest::testRender |
( |
| ) |
|
Definition at line 163 of file DurationInputTest.php.
References $duration.
163 : \ILIAS\UI\Component\Input\Field\Duration
165 $duration = $this->factory->duration(
'label',
'byline')
166 ->withNameFrom($this->name_source);
167 $label_start =
'duration_default_label_start';
168 $label_end =
'duration_default_label_end';
170 $f1 = $this->getFormWrappedHtml(
171 'date-time-field-input',
173 '<div class="c-input-group"> 174 <input id="id_1" type="date" name="name_0/start_1" class="c-field-datetime" /> 182 $f2 = $this->getFormWrappedHtml(
183 'date-time-field-input',
185 '<div class="c-input-group"> 186 <input id="id_2" type="date" name="name_0/end_2" class="c-field-datetime" /> 195 $expected = $this->getFormWrappedHtml(
196 'duration-field-input',
198 '<div class="c-field-duration">' . $f1 . $f2 .
'</div>',
201 $this->assertEquals($expected, $this->render(
$duration));
◆ testRenderWithDifferentLabels()
| DurationInputTest::testRenderWithDifferentLabels |
( |
|
$duration | ) |
|
testRender
Definition at line 208 of file DurationInputTest.php.
References $duration.
210 $other_start_label =
'other startlabel';
211 $other_end_label =
'other endlabel';
215 $f1 = $this->getFormWrappedHtml(
216 'date-time-field-input',
218 '<div class="c-input-group"> 219 <input id="id_1" type="date" name="name_0/start_1" class="c-field-datetime" /> 227 $f2 = $this->getFormWrappedHtml(
228 'date-time-field-input',
230 '<div class="c-input-group"> 231 <input id="id_2" type="date" name="name_0/end_2" class="c-field-datetime" /> 240 $expected = $this->getFormWrappedHtml(
241 'duration-field-input',
243 '<div class="c-field-duration">' . $f1 . $f2 .
'</div>',
246 $this->assertEquals($expected, $this->render(
$duration));
◆ testWithFormat()
| DurationInputTest::testWithFormat |
( |
| ) |
|
Definition at line 88 of file DurationInputTest.php.
References $duration.
90 $format = $this->data_factory->dateFormat()->germanShort();
91 $duration = $this->factory->duration(
'label',
'byline')
92 ->withFormat($format);
◆ testWithInvalidTimeZone()
| DurationInputTest::testWithInvalidTimeZone |
( |
| ) |
|
Definition at line 149 of file DurationInputTest.php.
References $datetime.
151 $this->expectException(InvalidArgumentException::class);
152 $datetime = $this->factory->duration(
'label',
'byline');
153 $tz =
'NOT/aValidTZ';
◆ testWithMaxValue()
| DurationInputTest::testWithMaxValue |
( |
| ) |
|
◆ testWithMinValue()
| DurationInputTest::testWithMinValue |
( |
| ) |
|
◆ testWithoutByline()
| DurationInputTest::testWithoutByline |
( |
| ) |
|
Definition at line 157 of file DurationInputTest.php.
References $datetime.
159 $datetime = $this->factory->duration(
'label');
160 $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
◆ $factory
| I Input Field Factory DurationInputTest::$factory |
|
protected |
◆ $lng
◆ $name_source
The documentation for this class was generated from the following file: