From 83a996922094e14dfeb4e52e82dc69ff4d8c901e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 16 Jun 2022 22:30:25 +0200 Subject: [PATCH] more debug for test PersonUpdatecontroller --- .../Tests/Controller/PersonControllerUpdateTest.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php index 28e71af01..1be86d381 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php @@ -64,9 +64,10 @@ final class PersonControllerUpdateTest extends WebTestCase $center = self::$container->get(CenterRepository::class) ->findOneBy(['name' => 'Center A']); - if (null === $center) { - dump(self::$container->get(CenterRepository::class)->findAll()); - } + var_dump(array_map( + function (Center $c) { return $c->getName(); }, + self::$container->get(CenterRepository::class)->findAll() + )); $this->person = (new Person()) ->setLastName('My Beloved')