mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 14:25:00 +00:00
Apply rector rules + fix CS
This commit is contained in:
@@ -57,7 +57,7 @@ final class PersonControllerUpdateTest extends WebTestCase
|
||||
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
|
||||
foreach (self::$toDelete as list($class, $id)) {
|
||||
foreach (self::$toDelete as [$class, $id]) {
|
||||
$entity = $em->find($class, $id);
|
||||
|
||||
if (null === $entity) {
|
||||
|
@@ -41,7 +41,7 @@ final class PersonControllerViewTest extends WebTestCase
|
||||
|
||||
$em = self::$container->get(EntityManagerInterface::class);
|
||||
|
||||
foreach (self::$toDelete as list($class, $id)) {
|
||||
foreach (self::$toDelete as [$class, $id]) {
|
||||
$entity = $em->find($class, $id);
|
||||
|
||||
if (null === $entity) {
|
||||
@@ -85,7 +85,8 @@ final class PersonControllerViewTest extends WebTestCase
|
||||
|
||||
$client->request('GET', $this->makeViewPath($personId));
|
||||
|
||||
self::assertResponseStatusCodeSame(403,
|
||||
self::assertResponseStatusCodeSame(
|
||||
403,
|
||||
'The view page of a person of a center A must not be accessible for user of center B'
|
||||
);
|
||||
}
|
||||
|
@@ -27,7 +27,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase
|
||||
/**
|
||||
* @var string The url to view the person details
|
||||
*/
|
||||
private string $viewUrl;
|
||||
private readonly string $viewUrl;
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
|
@@ -69,7 +69,7 @@ final class BirthdateValidatorTest extends ConstraintValidatorTestCase
|
||||
return new BirthdateValidator(
|
||||
new ParameterBag(['chill_person' => ['validation' => ['birthdate_not_after' => 'P1D']]]),
|
||||
new MockClock(new \DateTimeImmutable('2023-08-30T14:12:00'))
|
||||
);
|
||||
);
|
||||
}
|
||||
|
||||
private function createConstraint()
|
||||
|
Reference in New Issue
Block a user