mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 09:48:40 +00:00
46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* Orange Management
|
|
*
|
|
* PHP Version 7.4
|
|
*
|
|
* @package tests
|
|
* @copyright Dennis Eichhorn
|
|
* @license OMS License 1.0
|
|
* @version 1.0.0
|
|
* @link https://orange-management.org
|
|
*/
|
|
declare(strict_types=1);
|
|
|
|
namespace phpOMS\tests\Utils\TaskSchedule;
|
|
|
|
use phpOMS\Utils\TaskSchedule\SchedulerAbstract;
|
|
|
|
/**
|
|
* @testdox phpOMS\tests\Utils\TaskSchedule\SchedulerAbstractTest: Scheduler abstraction
|
|
*
|
|
* @internal
|
|
*/
|
|
class SchedulerAbstractTest extends \PHPUnit\Framework\TestCase
|
|
{
|
|
/**
|
|
* @testdox The scheduler has the expected default values after initialization
|
|
* @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract
|
|
* @group framework
|
|
*/
|
|
public function testDefault() : void
|
|
{
|
|
self::assertTrue(SchedulerAbstract::getBin() === '' || \file_exists(SchedulerAbstract::getBin()));
|
|
}
|
|
|
|
/**
|
|
* @testdox The scheduler binary location path can be guessed
|
|
* @covers phpOMS\Utils\TaskSchedule\SchedulerAbstract
|
|
* @group framework
|
|
*/
|
|
public function testGuessBinary() : void
|
|
{
|
|
self::assertTrue(SchedulerAbstract::guessBin());
|
|
}
|
|
}
|