mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
replace some entity shortcut by fqdn
* ChillPerson:Person * ChillMain:Center * ChillActivity:Activity
This commit is contained in:
@@ -453,7 +453,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
*/
|
||||
protected function getRandomEvent($centerName = 'Center A', $circleName = 'social')
|
||||
{
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findByName($centerName);
|
||||
|
||||
$circles = $this->em->getRepository('ChillMainBundle:Scope')
|
||||
@@ -503,10 +503,10 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
*/
|
||||
protected function getRandomPerson($centerName = 'Center A')
|
||||
{
|
||||
$center = $this->em->getRepository('ChillMainBundle:Center')
|
||||
$center = $this->em->getRepository(\Chill\MainBundle\Entity\Center::class)
|
||||
->findByName($centerName);
|
||||
|
||||
$persons = $this->em->getRepository('ChillPersonBundle:Person')
|
||||
$persons = $this->em->getRepository(\Chill\PersonBundle\Entity\Person::class)
|
||||
->findBy(['center' => $center]);
|
||||
|
||||
$person = $persons[array_rand($persons)];
|
||||
|
Reference in New Issue
Block a user