mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 17:28:23 +00:00 
			
		
		
		
	DX: Fix HouseholdApiControllerTest.php
This commit is contained in:
		| @@ -137,20 +137,17 @@ final class HouseholdApiControllerTest extends WebTestCase | ||||
|         $qb = self::$container->get(EntityManagerInterface::class) | ||||
|             ->createQueryBuilder(); | ||||
|  | ||||
|         $period = $qb | ||||
|             ->select('ap') | ||||
|             ->from(AccompanyingPeriod::class, 'ap') | ||||
|         $personIds = $qb | ||||
|             ->select("p.id AS pid") | ||||
|             ->from(Person::class, 'p') | ||||
|             ->where( | ||||
|                 $qb->expr()->gte('SIZE(ap.participations)', 2) | ||||
|                 $qb->expr()->gte('SIZE(p.accompanyingPeriodParticipations)', 2) | ||||
|             ) | ||||
|             ->getQuery() | ||||
|             ->setMaxResults(1) | ||||
|             ->getSingleResult(); | ||||
|  | ||||
|         $person = $period->getParticipations() | ||||
|             ->first()->getPerson(); | ||||
|  | ||||
|         yield [$person->getId()]; | ||||
|         yield [$personIds['pid']]; | ||||
|  | ||||
|         self::ensureKernelShutdown(); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user