mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	debug test on gitlab ci
This commit is contained in:
		| @@ -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') | ||||
|   | ||||
		Reference in New Issue
	
	Block a user