19 declare(strict_types=1);
31 protected function setUp(): void
45 $this->assertInstanceOf(ilCronFinishUnfinishedTestPasses::class, $this->test_obj);
50 $this->assertEquals(
"finish_unfinished_passes", $this->test_obj->getId());
55 $lng_mock = $this->createMock(ilLanguage::class);
57 ->expects($this->any())
59 ->with(
"finish_unfinished_passes")
60 ->willReturn(
"testString");
65 $this->assertEquals(
"testString", $test_obj->
getTitle());
70 $lng_mock = $this->createMock(ilLanguage::class);
72 ->expects($this->any())
74 ->with(
"finish_unfinished_passes_desc")
75 ->willReturn(
"testString");
86 CronJobScheduleType::SCHEDULE_TYPE_DAILY,
87 $this->test_obj->getDefaultScheduleType()
93 $this->assertFalse($this->test_obj->hasAutoActivation());
98 $this->assertTrue($this->test_obj->hasFlexibleSchedule());
103 $this->assertTrue($this->test_obj->hasCustomSettings());
108 $this->assertInstanceOf(ilCronJobResult::class, $this->test_obj->run());
Class ilCronFinishUnfinishedTestPassesTest.
test_instantiateObject_shouldReturnInstance()
Class ilCronFinishUnfinishedTestPasses.
testGetDefaultScheduleType()
setGlobalVariable(string $name, $value)
addGlobal_ilObjDataCache()
ilCronFinishUnfinishedTestPasses $test_obj
testHasFlexibleSchedule()