fix tests

This commit is contained in:
Dennis Eichhorn 2023-09-21 16:59:06 +00:00
parent 173c501b54
commit e8fbb0bc2c
2 changed files with 11 additions and 2 deletions

View File

@ -38,6 +38,15 @@ final class CronTest extends \PHPUnit\Framework\TestCase
'No scheduler available' 'No scheduler available'
); );
} }
try {
$cron = new Cron();
$cron->getAll();
} catch (\Throwable $_) {
$this->markTestSkipped(
'No scheduler available'
);
}
} }
// * * * * * echo "test" > __DIR__ . '/cronjob.log' // evaluate dir // * * * * * echo "test" > __DIR__ . '/cronjob.log' // evaluate dir