mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-10 22:18:40 +00:00
Test path guessing
This commit is contained in:
parent
94eb099fb9
commit
ac3711768c
|
|
@ -25,9 +25,8 @@ class CronTest extends \PHPUnit\Framework\TestCase
|
||||||
|
|
||||||
public function testCRUD()
|
public function testCRUD()
|
||||||
{
|
{
|
||||||
self::assertTrue(Cron::guessBin());
|
|
||||||
|
|
||||||
if (\stristr(PHP_OS, 'LINUX')) {
|
if (\stristr(PHP_OS, 'LINUX')) {
|
||||||
|
self::assertTrue(Cron::guessBin());
|
||||||
$cron = new Cron();
|
$cron = new Cron();
|
||||||
|
|
||||||
self::assertEquals([], $cron->getAllByName('testCronJob', false));
|
self::assertEquals([], $cron->getAllByName('testCronJob', false));
|
||||||
|
|
|
||||||
|
|
@ -26,7 +26,7 @@ class TaskSchedulerTest extends \PHPUnit\Framework\TestCase
|
||||||
public function testCRUD()
|
public function testCRUD()
|
||||||
{
|
{
|
||||||
if (\stristr(PHP_OS, 'WIN')) {
|
if (\stristr(PHP_OS, 'WIN')) {
|
||||||
TaskScheduler::guessBin();
|
self::assertTrue(TaskScheduler::guessBin());
|
||||||
$cron = new TaskScheduler();
|
$cron = new TaskScheduler();
|
||||||
|
|
||||||
self::assertEquals([], $cron->getAllByName('testCronJob', false));
|
self::assertEquals([], $cron->getAllByName('testCronJob', false));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user