From a5295123d45b643281bc48e606823246ea8cac25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Thu, 16 Jun 2022 22:22:10 +0200 Subject: [PATCH] debug test on gitlab ci --- .../Tests/Controller/PersonControllerUpdateTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php index c034e7a03..28e71af01 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php @@ -12,6 +12,7 @@ declare(strict_types=1); namespace Chill\PersonBundle\Tests\Controller; use Chill\MainBundle\Entity\Center; +use Chill\MainBundle\Repository\CenterRepository; use Chill\MainBundle\Test\PrepareClientTrait; use Chill\PersonBundle\Entity\Person; use Closure; @@ -60,9 +61,13 @@ final class PersonControllerUpdateTest extends WebTestCase $this->em = self::$container ->get(EntityManagerInterface::class); - $center = $this->em->getRepository(Center::class) + $center = self::$container->get(CenterRepository::class) ->findOneBy(['name' => 'Center A']); + if (null === $center) { + dump(self::$container->get(CenterRepository::class)->findAll()); + } + $this->person = (new Person()) ->setLastName('My Beloved') ->setFirstName('Jesus')