Support for changeable work contract types (#5069)

This commit is contained in:
Kevin Papst
2024-09-22 16:18:21 +02:00
committed by GitHub
parent 8de54e1fa7
commit 4076e1c3d3
23 changed files with 830 additions and 85 deletions

View File

@@ -0,0 +1,27 @@
<?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));
}
}