mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 22:35:01 +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
|
||||
{
|
||||
|
Reference in New Issue
Block a user