mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
fix tests
This commit is contained in:
parent
173c501b54
commit
e8fbb0bc2c
|
|
@ -36,7 +36,16 @@ final class CronTest extends \PHPUnit\Framework\TestCase
|
|||
if (!SchedulerAbstract::guessBin()) {
|
||||
$this->markTestSkipped(
|
||||
'No scheduler available'
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
try {
|
||||
$cron = new Cron();
|
||||
$cron->getAll();
|
||||
} catch (\Throwable $_) {
|
||||
$this->markTestSkipped(
|
||||
'No scheduler available'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ final class TaskSchedulerTest extends \PHPUnit\Framework\TestCase
|
|||
if (!SchedulerAbstract::guessBin()) {
|
||||
$this->markTestSkipped(
|
||||
'No scheduler available'
|
||||
);
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user