replace fqdn in event bundle

This commit is contained in:
2022-04-30 00:42:03 +02:00
parent d0cc0e775f
commit 6da19b0135
7 changed files with 29 additions and 29 deletions

View File

@@ -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)];