Fix cs with php-cs-fier version 3.49

This commit is contained in:
2024-02-08 21:12:27 +01:00
parent 8e65ad9476
commit 2ed42e1a2c
11 changed files with 24 additions and 17 deletions

View File

@@ -143,7 +143,7 @@ final class ParticipationControllerTest extends WebTestCase
$client = $this->getClientAuthenticated();
$this->prepareDI();
/** @var \Chill\EventBundle\Entity\Event $event */
/** @var Event $event */
$event = $this->getRandomEventWithMultipleParticipations();
$crawler = $client->request('GET', '/fr/event/participation/'.$event->getId().
@@ -301,7 +301,7 @@ final class ParticipationControllerTest extends WebTestCase
$this->assertGreaterThan(0, \count($span2));
// as the container has reloaded, reload the event
$event = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)->find($event->getId());
$event = $this->em->getRepository(Event::class)->find($event->getId());
$this->em->refresh($event);
$this->assertEquals($nbParticipations + 2, $event->getParticipations()->count());
@@ -398,7 +398,7 @@ final class ParticipationControllerTest extends WebTestCase
$this->assertTrue($client->getResponse()->isRedirect());
// reload the event and test there is a new participation
$event = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)
$event = $this->em->getRepository(Event::class)
->find($event->getId());
$this->em->refresh($event);
@@ -451,7 +451,7 @@ final class ParticipationControllerTest extends WebTestCase
$this->assertGreaterThan(0, \count($span));
// as the container has reloaded, reload the event
$event = $this->em->getRepository(\Chill\EventBundle\Entity\Event::class)->find($event->getId());
$event = $this->em->getRepository(Event::class)->find($event->getId());
$this->em->refresh($event);
$this->assertEquals($nbParticipations + 1, $event->getParticipations()->count());
@@ -476,7 +476,7 @@ final class ParticipationControllerTest extends WebTestCase
* @param string $centerName
* @param type $circleName
*
* @return \Chill\EventBundle\Entity\Event
* @return Event
*/
protected function getRandomEventWithMultipleParticipations(
$centerName = 'Center A',