mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 06:14:59 +00:00
Apply rector rules + fix CS
This commit is contained in:
@@ -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'
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user