Index: tests/typo3/sysext/scheduler/tx_scheduler_croncmd_testcase.php =================================================================== --- tests/typo3/sysext/scheduler/tx_scheduler_croncmd_testcase.php (revision 7195) +++ tests/typo3/sysext/scheduler/tx_scheduler_croncmd_testcase.php (working copy) @@ -42,6 +42,12 @@ * @test */ public function isDayListCorrectForOneDayOfMonth() { + if (!t3lib_extMgm::isLoaded('scheduler')) { + $this->markTestSkipped( + 'This test only is applicable if the scheduler is installed.' + ); + } + $cronCmdInstance = t3lib_div::makeInstance('tx_scheduler_cronCmd', '* * 2 * *'); $expectedResult = array( '0' => 2, @@ -56,6 +62,12 @@ * @test */ public function isDayListCorrectForListOfDayOfMonth() { + if (!t3lib_extMgm::isLoaded('scheduler')) { + $this->markTestSkipped( + 'This test only is applicable if the scheduler is installed.' + ); + } + $cronCmdInstance = t3lib_div::makeInstance('tx_scheduler_cronCmd', '* * 2,7 * *'); $expectedResult = array( '0' => 2, @@ -71,6 +83,12 @@ * @test */ public function isDayListCorrectForRangeOfDayOfMonth() { + if (!t3lib_extMgm::isLoaded('scheduler')) { + $this->markTestSkipped( + 'This test only is applicable if the scheduler is installed.' + ); + } + $cronCmdInstance = t3lib_div::makeInstance('tx_scheduler_cronCmd', '* * 2-4,10 * *'); $expectedResult = array( '0' => 2, @@ -88,6 +106,12 @@ * @test */ public function isDayListCorrectForOneDayOfWeek() { + if (!t3lib_extMgm::isLoaded('scheduler')) { + $this->markTestSkipped( + 'This test only is applicable if the scheduler is installed.' + ); + } + $cronCmdInstance = t3lib_div::makeInstance('tx_scheduler_cronCmd', '* * * * 1', self::TIMESTAMP); $expectedResult = array( '0' => 4, @@ -105,6 +129,12 @@ * @test */ public function isDayListCorrectForCombinationOfDayOfMonthAndDayOfWeek() { + if (!t3lib_extMgm::isLoaded('scheduler')) { + $this->markTestSkipped( + 'This test only is applicable if the scheduler is installed.' + ); + } + $cronCmdInstance = t3lib_div::makeInstance('tx_scheduler_cronCmd', '* * 1,2 * 1', self::TIMESTAMP); $expectedResult = array( '0' => 1, @@ -118,4 +148,4 @@ $this->assertEquals($expectedResult, $actualResult[2]); } } -?> +?> \ No newline at end of file