3 declare(strict_types=1);
29 protected function setUp(): void
42 $this->assertInstanceOf(ilCronFinishUnfinishedTestPasses::class, $this->testObj);
47 $this->assertEquals(
"finish_unfinished_passes", $this->testObj->getId());
52 $lng_mock = $this->createMock(ilLanguage::class);
54 ->expects($this->any())
56 ->with(
"finish_unfinished_passes")
57 ->willReturn(
"testString");
61 $this->assertEquals(
"testString", $this->testObj->getTitle());
66 $lng_mock = $this->createMock(ilLanguage::class);
68 ->expects($this->any())
70 ->with(
"finish_unfinished_passes_desc")
71 ->willReturn(
"testString");
75 $this->assertEquals(
"testString", $this->testObj->getDescription());
82 $this->testObj->getDefaultScheduleType()
88 $this->assertFalse($this->testObj->hasAutoActivation());
93 $this->assertTrue($this->testObj->hasFlexibleSchedule());
98 $this->assertTrue($this->testObj->hasCustomSettings());
103 $this->assertInstanceOf(ilCronJobResult::class, $this->testObj->run());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_instantiateObject_shouldReturnInstance()
ilCronFinishUnfinishedTestPasses $testObj
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
testGetDefaultScheduleType()
setGlobalVariable(string $name, $value)
addGlobal_ilObjDataCache()
const SCHEDULE_TYPE_DAILY
This will be replaced with an ENUM in ILIAS 9
testHasFlexibleSchedule()