5 require_once(__DIR__ .
"/../../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../../Base.php");
10 use \ILIAS\UI\Implementation\Component\Input\NameSource;
11 use \ILIAS\UI\Component\Input\Field;
13 use \ILIAS\Refinery\Validation;
14 use \ILIAS\Refinery\Transformation;
21 $this->data_factory =
new Data\Factory();
27 $df =
new Data\Factory();
28 $language = $this->createMock(\ilLanguage::class);
40 $format = $this->data_factory->dateFormat()->germanShort();
41 $datetime = $this->factory->datetime(
'label',
'byline')
46 $datetime->getFormat()
52 $dat = new \DateTimeImmutable(
'2019-01-09');
53 $datetime = $this->factory->datetime(
'label',
'byline')
58 $datetime->getMinValue()
64 $dat = new \DateTimeImmutable(
'2019-01-09');
65 $datetime = $this->factory->datetime(
'label',
'byline')
70 $datetime->getMaxValue()
76 $datetime = $this->factory->datetime(
'label',
'byline');
77 $this->assertFalse($datetime->getUseTime());
78 $this->assertTrue($datetime->withUseTime(
true)->getUseTime());
83 $datetime = $this->factory->datetime(
'label',
'byline');
84 $this->assertFalse($datetime->getTimeOnly());
85 $this->assertTrue($datetime->withTimeOnly(
true)->getTimeOnly());
90 $datetime = $this->factory->datetime(
'label',
'byline');
91 $this->assertNull($datetime->getTimeZone());
92 $tz =
'Europe/Moscow';
95 $datetime->withTimeZone($tz)->getTimeZone()
100 $this->expectException(\InvalidArgumentException::class);
101 $datetime = $this->factory->datetime(
'label',
'byline');
102 $tz =
'NOT/aValidTZ';
103 $datetime->withTimeZone(
$tz);
Class ChatMainBarProvider .
Provides common functionality for UI tests.