From f14723c234bd7e725f633cc1a8b499708bf361a3 Mon Sep 17 00:00:00 2001 From: tristan Date: Tue, 9 Jun 2026 10:13:21 +0200 Subject: [PATCH] chore(rtt) : fix test docblock placement and restore alignment --- .../State/EmployeeRttSummaryProviderTest.php | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/tests/State/EmployeeRttSummaryProviderTest.php b/tests/State/EmployeeRttSummaryProviderTest.php index ff3580a..bb4002e 100644 --- a/tests/State/EmployeeRttSummaryProviderTest.php +++ b/tests/State/EmployeeRttSummaryProviderTest.php @@ -202,15 +202,6 @@ final class EmployeeRttSummaryProviderTest extends TestCase self::assertSame(2030, $year); } - /** - * Build an uninitialized provider with a RequestStack pre-loaded with the given query. - * - * The provider's repository/service dependencies are typed against final classes - * (EmployeeRepository, RttRecoveryComputationService, etc.) which PHPUnit cannot - * double. We bypass full instantiation by using newInstanceWithoutConstructor and - * only setting the properties that the tested private methods actually read: - * `requestStack` and `phaseResolver`. - */ public function testFlatDeficitWeekIsNotDrainedFromTiers(): void { $provider = $this->buildProvider([]); @@ -311,6 +302,17 @@ final class EmployeeRttSummaryProviderTest extends TestCase ); } + /** + * Build an uninitialized provider with a RequestStack pre-loaded with the given query. + * + * The provider's repository/service dependencies are typed against final classes + * (EmployeeRepository, RttRecoveryComputationService, etc.) which PHPUnit cannot + * double. We bypass full instantiation by using newInstanceWithoutConstructor and + * only setting the properties that the tested private methods actually read: + * `requestStack` and `phaseResolver`. + * + * @param array $request + */ private function buildProvider(array $request = []): EmployeeRttSummaryProvider { $requestStack = new RequestStack();