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();