179 $lastResetDate = $this->getMockBuilder(ilDate::class)
180 ->disableOriginalConstructor()
185 $lastResetDate->setDate($date->getTimestamp(),
IL_CAL_UNIX);
190 'seconds' => (
int) $date->format(
's'),
191 'minutes' => (
int) $date->format(
'i'),
192 'hours' => (
int) $date->format(
'G'),
193 'mday' => (
int) $date->format(
'j'),
194 'wday' => (
int) $date->format(
'w'),
195 'mon' => (
int) $date->format(
'n'),
196 'year' => (
int) $date->format(
'Y'),
197 'yday' => (
int) $date->format(
'z'),
198 'weekday' => $date->format(
'l'),
199 'month' => $date->format(
'F'),
200 'isoday' => (
int) $date->format(
'N')
208 ->method(
'getLastResetDate')
209 ->willReturn($lastResetDate);
212 ->expects($this->once())
214 ->willReturn(
'getResetMessageBoxHtml');
217 ->expects($this->once())
218 ->method(
'getLinkTarget')
219 ->with($this->isInstanceOf(ilTermsOfServiceDocumentGUI::class),
'confirmReset')
220 ->willReturn(
'confirmReset');
223 ->method(
'checkAccess')
227 $button = $this->getMockBuilder(Standard::class)->getMock();
230 ->expects($this->once())
232 ->with($this->isType(
'string'), $this->equalTo(
'confirmReset'))
233 ->willReturn($button);
236 ->expects($this->once())
238 ->willReturn($buttonFactory);
241 $info = $this->getMockBuilder(MessageBox::class)->getMock();
244 ->expects($this->once())
246 ->with($this->stringContains(
'Some date:'))
250 ->expects($this->once())
251 ->method(
'withButtons')
252 ->with($this->countOf(1));
255 ->expects($this->once())
256 ->method(
'messageBox')
257 ->willReturn($messageBoxFactory);
260 ->expects($this->never())
261 ->method(
'raiseError');
264 ->expects($this->atLeast(1))
269 ->expects($this->exactly(2))
271 ->willReturnOnConsecutiveCalls(
278 $this->criterionTypeFactory,
292 $this->tableDataProviderFactory,
293 $this->documentPurifier,
297 $gui->executeCommand();
setGlobalVariable(string $name, $value)
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilTermsOfServiceDocumentGUI.