mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-21 07:03:49 +00:00
replace fqdn in event bundle
This commit is contained in:
@@ -292,7 +292,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
$this->assertGreaterThan(0, count($span2));
|
||||
|
||||
// as the container has reloaded, reload the event
|
||||
$event = $this->em->getRepository('ChillEventBundle:Event')->find($event->getId());
|
||||
$event = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)->find($event->getId());
|
||||
$this->em->refresh($event);
|
||||
|
||||
$this->assertEquals($nbParticipations + 2, $event->getParticipations()->count());
|
||||
@@ -388,7 +388,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
$this->assertTrue($this->client->getResponse()->isRedirect());
|
||||
|
||||
// reload the event and test there is a new participation
|
||||
$event = $this->em->getRepository('ChillEventBundle:Event')
|
||||
$event = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)
|
||||
->find($event->getId());
|
||||
$this->em->refresh($event);
|
||||
|
||||
@@ -439,7 +439,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
$this->assertGreaterThan(0, count($span));
|
||||
|
||||
// as the container has reloaded, reload the event
|
||||
$event = $this->em->getRepository('ChillEventBundle:Event')->find($event->getId());
|
||||
$event = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)->find($event->getId());
|
||||
$this->em->refresh($event);
|
||||
|
||||
$this->assertEquals($nbParticipations + 1, $event->getParticipations()->count());
|
||||
@@ -463,7 +463,7 @@ final class ParticipationControllerTest extends WebTestCase
|
||||
});
|
||||
$circle = $circles[0];
|
||||
|
||||
$events = $this->em->getRepository('ChillEventBundle:Event')
|
||||
$events = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)
|
||||
->findBy(['center' => $center, 'circle' => $circle]);
|
||||
|
||||
return $events[array_rand($events)];
|
||||
|
Reference in New Issue
Block a user