fixes after merge of master into upgrade-sf4

This commit is contained in:
2024-02-12 22:31:16 +01:00
parent 37af488f69
commit f889d67e94
664 changed files with 795 additions and 1980 deletions

View File

@@ -30,9 +30,7 @@ class EventListControllerTest extends WebTestCase
private readonly PaginatorFactory $paginatorFactory;
private readonly Environment $environment;
protected function setUp(): void
{
}
protected function setUp(): void {}
public function testList(): void
{

View File

@@ -48,8 +48,8 @@ final class ParticipationControllerTest extends WebTestCase
protected function prepareDI(): void
{
$this->em = self::$container->get(EntityManagerInterface::class);
$this->eventRepository = self::$container->get(EventRepository::class);
$this->em = self::getContainer()->get(EntityManagerInterface::class);
$this->eventRepository = self::getContainer()->get(EventRepository::class);
$this->personsIdsCache = [];
}

View File

@@ -67,7 +67,7 @@ class EventACLAwareRepositoryTest extends KernelTestCase
public function buildEventACLAwareRepository(): EventACLAwareRepository
{
$em = self::$container->get(EntityManagerInterface::class);
$em = self::getContainer()->get(EntityManagerInterface::class);
$user = $em->createQuery('SELECT u FROM '.User::class.' u')
->setMaxResults(1)
->getSingleResult()