mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-12 06:48:41 +00:00
fix tests
This commit is contained in:
parent
ad982dda8f
commit
6e0aebb074
|
|
@ -16,6 +16,7 @@ namespace phpOMS\tests\Utils\TaskSchedule;
|
||||||
|
|
||||||
use phpOMS\Utils\TaskSchedule\Cron;
|
use phpOMS\Utils\TaskSchedule\Cron;
|
||||||
use phpOMS\Utils\TaskSchedule\CronJob;
|
use phpOMS\Utils\TaskSchedule\CronJob;
|
||||||
|
use phpOMS\Utils\TaskSchedule\SchedulerAbstract;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @testdox phpOMS\tests\Utils\TaskSchedule\CronTest: Cron handler
|
* @testdox phpOMS\tests\Utils\TaskSchedule\CronTest: Cron handler
|
||||||
|
|
@ -31,6 +32,12 @@ final class CronTest extends \PHPUnit\Framework\TestCase
|
||||||
'The OS is not linux.'
|
'The OS is not linux.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!SchedulerAbstract::guessBin()) {
|
||||||
|
$this->markTestSkipped(
|
||||||
|
'No scheduler available'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// * * * * * echo "test" > __DIR__ . '/cronjob.log' // evaluate dir
|
// * * * * * echo "test" > __DIR__ . '/cronjob.log' // evaluate dir
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ declare(strict_types=1);
|
||||||
namespace phpOMS\tests\Utils\TaskSchedule;
|
namespace phpOMS\tests\Utils\TaskSchedule;
|
||||||
|
|
||||||
use phpOMS\Utils\TaskSchedule\Schedule;
|
use phpOMS\Utils\TaskSchedule\Schedule;
|
||||||
|
use phpOMS\Utils\TaskSchedule\SchedulerAbstract;
|
||||||
use phpOMS\Utils\TaskSchedule\TaskScheduler;
|
use phpOMS\Utils\TaskSchedule\TaskScheduler;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -31,6 +32,12 @@ final class TaskSchedulerTest extends \PHPUnit\Framework\TestCase
|
||||||
'The OS is not windows.'
|
'The OS is not windows.'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!SchedulerAbstract::guessBin()) {
|
||||||
|
$this->markTestSkipped(
|
||||||
|
'No scheduler available'
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user