mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Replaced the deprecated 'self::$container->get' with 'self::getContainer()->get' using rector
This change is made to comply with the new Symfony standards and to avoid deprecation warnings for future versions. The update touches various functionalities, including retrieving EntityManagerInterface instance and various service classes within the test files.
This commit is contained in:
@@ -41,8 +41,8 @@ class ManagerTest extends KernelTestCase
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->em = self::$container->get(EntityManagerInterface::class);
|
||||
$this->connection = self::$container->get(Connection::class);
|
||||
$this->em = self::getContainer()->get(EntityManagerInterface::class);
|
||||
$this->connection = self::getContainer()->get(Connection::class);
|
||||
}
|
||||
|
||||
public function testCountByAccompanyingPeriod(): void
|
||||
|
@@ -34,7 +34,7 @@ class AccompanyingCourseDocumentGenericDocProviderTest extends KernelTestCase
|
||||
{
|
||||
self::bootKernel();
|
||||
|
||||
$this->entityManager = self::$container->get(EntityManagerInterface::class);
|
||||
$this->entityManager = self::getContainer()->get(EntityManagerInterface::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -36,8 +36,8 @@ class PersonDocumentGenericDocProviderTest extends KernelTestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->entityManager = self::$container->get(EntityManagerInterface::class);
|
||||
$this->personDocumentACLAwareRepository = self::$container->get(PersonDocumentACLAwareRepositoryInterface::class);
|
||||
$this->entityManager = self::getContainer()->get(EntityManagerInterface::class);
|
||||
$this->personDocumentACLAwareRepository = self::getContainer()->get(PersonDocumentACLAwareRepositoryInterface::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -42,8 +42,8 @@ class PersonDocumentACLAwareRepositoryTest extends KernelTestCase
|
||||
protected function setUp(): void
|
||||
{
|
||||
self::bootKernel();
|
||||
$this->entityManager = self::$container->get(EntityManagerInterface::class);
|
||||
$this->scopeRepository = self::$container->get(ScopeRepositoryInterface::class);
|
||||
$this->entityManager = self::getContainer()->get(EntityManagerInterface::class);
|
||||
$this->scopeRepository = self::getContainer()->get(ScopeRepositoryInterface::class);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -30,7 +30,7 @@ class SignedUrlNormalizerTest extends KernelTestCase
|
||||
parent::setUpBeforeClass();
|
||||
|
||||
self::bootKernel();
|
||||
self::$normalizer = self::$container->get(NormalizerInterface::class);
|
||||
self::$normalizer = self::getContainer()->get(NormalizerInterface::class);
|
||||
}
|
||||
|
||||
public function testNormalizerSignedUrl(): void
|
||||
|
@@ -30,7 +30,7 @@ class SignedUrlPostNormalizerTest extends KernelTestCase
|
||||
parent::setUpBeforeClass();
|
||||
|
||||
self::bootKernel();
|
||||
self::$normalizer = self::$container->get(NormalizerInterface::class);
|
||||
self::$normalizer = self::getContainer()->get(NormalizerInterface::class);
|
||||
}
|
||||
|
||||
public function testNormalizerSignedUrl(): void
|
||||
|
Reference in New Issue
Block a user