mirror of
https://github.com/kevinpapst/kimai2.git
synced 2025-01-11 03:48:10 +00:00
27 lines
712 B
PHP
27 lines
712 B
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of the Kimai time-tracking app.
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
namespace App\Tests\WorkingTime\Calculator;
|
|
|
|
use App\WorkingTime\Calculator\WorkingTimeCalculatorNone;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
/**
|
|
* @covers \App\WorkingTime\Calculator\WorkingTimeCalculatorNone
|
|
*/
|
|
class WorkingTimeCalculatorNoneTest extends TestCase
|
|
{
|
|
public function testDefaults(): void
|
|
{
|
|
$date = new \DateTime();
|
|
$sut = new WorkingTimeCalculatorNone();
|
|
self::assertTrue($sut->isWorkDay($date));
|
|
self::assertEquals(0, $sut->getWorkHoursForDay($date));
|
|
}
|
|
}
|