19 declare(strict_types=1);
33 protected function setUp(): void
42 $this->assertInstanceOf(ilSCTask::class, $task);
47 $this->getMockBuilder(ilDateTime::class)
48 ->disableOriginalConstructor()
52 $last_update = $task->getLastUpdate();
53 $this->assertInstanceOf(ilDateTime::class, $last_update);
62 $DIC[$name] =
static function (
Container $c) use ($value) {
73 $this->createMock(ilDBInterface::class)
75 $logger = $this->getMockBuilder(ilLogger::class)
76 ->disableOriginalConstructor()
79 $logger_factory = $this->getMockBuilder(ilLoggerFactory::class)
80 ->disableOriginalConstructor()
81 ->onlyMethods([
'getComponentLogger'])
83 $logger_factory->method(
'getComponentLogger')->willReturn($logger);
Defines a system check task.
setGlobalVariable(string $name, $value)
Customizing of pimple-DIC for ILIAS.
Unit tests for class ilDidacticTemplate.