Release 2.12 (#4609)

This commit is contained in:
Kevin Papst
2024-02-07 23:47:25 +01:00
committed by GitHub
parent 7abe787778
commit 85a16a9363
394 changed files with 1189 additions and 6735 deletions

View File

@@ -19,7 +19,7 @@ use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
*/
class TrackingModeServiceTest extends TestCase
{
public function testDefaultTrackingModesAreRegistered()
public function testDefaultTrackingModesAreRegistered(): void
{
$sut = (new TrackingModeServiceFactory($this))->create('punch');
@@ -36,14 +36,14 @@ class TrackingModeServiceTest extends TestCase
self::assertContains('duration_fixed_begin', $ids);
}
public function testGetActiveMode()
public function testGetActiveMode(): void
{
$sut = (new TrackingModeServiceFactory($this))->create('punch');
self::assertInstanceOf(PunchInOutMode::class, $sut->getActiveMode());
}
public function testGetActiveModeThrowsExceptionOnlyInvalidMode()
public function testGetActiveModeThrowsExceptionOnlyInvalidMode(): void
{
$this->expectException(ServiceNotFoundException::class);
$this->expectExceptionMessage('You have requested a non-existent service "xxxxxx"');