19use PHPUnit\Framework\TestCase;
27 protected function setUp(): void
38 $entry->setFullday(
true);
39 $entry->setTitle(
'First');
54 $entry->setFullday(
true);
59 $rec->setFrequenceUntilCount(1);
65 $dl = $calc->calculateDateList(
70 $this->assertCount(1, $dl);
71 foreach ($dl as $date) {
72 $this->assertTrue(strcmp($date->get(
IL_CAL_DATE),
'2022-01-01') === 0);
81 $entry->setFullday(
true);
86 $rec->setFrequenceUntilCount(2);
92 $dl = $calc->calculateDateList(
101 $this->assertTrue($result == $dl);
109 $entry->setFullday(
true);
114 $rec->setBYDAY(
'SA');
115 $rec->setBYMONTHDAY(
'1');
116 $rec->setInterval(1);
117 $rec->setFrequenceUntilCount(2);
123 $dl = $calc->calculateDateList(
131 $this->assertTrue($result == $dl);
154 $logger = $this->getMockBuilder(ilLogger::class)
155 ->disableOriginalConstructor()
158 $logger_factory = $this->getMockBuilder(ilLoggerFactory::class)
159 ->disableOriginalConstructor()
160 ->onlyMethods([
'getComponentLogger'])
162 $logger_factory->method(
'getComponentLogger')->willReturn($logger);
if(!defined('PATH_SEPARATOR')) $GLOBALS['_PEAR_default_error_mode']
Customizing of pimple-DIC for ILIAS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setGlobalVariable(string $name, $value)
testCalculatorConstruct()
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...
@classDescription Date and time handling