chore(rtt) : fix test docblock placement and restore alignment
This commit is contained in:
@@ -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<string, string> $request
|
||||
*/
|
||||
private function buildProvider(array $request = []): EmployeeRttSummaryProvider
|
||||
{
|
||||
$requestStack = new RequestStack();
|
||||
|
||||
Reference in New Issue
Block a user