Definition at line 31 of file DateTimeInputTest.php.
◆ buildFactory()
| DateTimeInputTest::buildFactory |
( |
| ) |
|
|
protected |
Definition at line 68 of file DateTimeInputTest.php.
Referenced by setUp().
68 : I\Input\Field\Factory
70 $df =
new Data\Factory();
71 $language = $this->createMock(ilLanguage::class);
73 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...
◆ getLanguage()
| DateTimeInputTest::getLanguage |
( |
| ) |
|
◆ getUIFactory()
| DateTimeInputTest::getUIFactory |
( |
| ) |
|
Definition at line 44 of file DateTimeInputTest.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()
| DateTimeInputTest::setUp |
( |
| ) |
|
◆ testWithFormat()
| DateTimeInputTest::testWithFormat |
( |
| ) |
|
Definition at line 82 of file DateTimeInputTest.php.
References $datetime.
84 $format = $this->data_factory->dateFormat()->germanShort();
85 $datetime = $this->factory->datetime(
'label',
'byline')
86 ->withFormat($format);
◆ testWithInvalidTimeZone()
| DateTimeInputTest::testWithInvalidTimeZone |
( |
| ) |
|
Definition at line 143 of file DateTimeInputTest.php.
References $datetime.
145 $this->expectException(InvalidArgumentException::class);
146 $datetime = $this->factory->datetime(
'label',
'byline');
147 $tz =
'NOT/aValidTZ';
◆ testWithInvalidValue()
| DateTimeInputTest::testWithInvalidValue |
( |
| ) |
|
Definition at line 163 of file DateTimeInputTest.php.
References $datetime.
165 $this->expectException(InvalidArgumentException::class);
166 $datetime = $this->factory->datetime(
'label',
'byline')
167 ->withValue(
"this is no datetime...");
◆ testWithMaxValue()
| DateTimeInputTest::testWithMaxValue |
( |
| ) |
|
◆ testWithMinValue()
| DateTimeInputTest::testWithMinValue |
( |
| ) |
|
◆ testWithTimeOnly()
| DateTimeInputTest::testWithTimeOnly |
( |
| ) |
|
◆ testWithTimeZone()
| DateTimeInputTest::testWithTimeZone |
( |
| ) |
|
◆ testWithUseTime()
| DateTimeInputTest::testWithUseTime |
( |
| ) |
|
◆ testWithValueThatIsDateTimeImmutable()
| DateTimeInputTest::testWithValueThatIsDateTimeImmutable |
( |
| ) |
|
Definition at line 151 of file DateTimeInputTest.php.
References $datetime.
153 $string_value =
"1985-05-04 00:00";
154 $value = new \DateTimeImmutable($string_value);
155 $datetime = $this->factory->datetime(
'label',
'byline')
◆ $data_factory
| Data Factory DateTimeInputTest::$data_factory |
|
protected |
◆ $factory
| I Input Field Factory DateTimeInputTest::$factory |
|
protected |
◆ $name_source
The documentation for this class was generated from the following file: