remove references to ->getContainer in favor of static::

This commit is contained in:
2021-05-07 10:56:49 +02:00
parent 6df8e6dec8
commit c93d5ceb16
11 changed files with 19 additions and 37 deletions

View File

@@ -11,7 +11,7 @@ class PersonDuplicateControllerViewTest extends WebTestCase
{
static::bootKernel();
$this->em = static::$kernel->getContainer()
$this->em = static::$container
->get('doctrine.orm.entity_manager');
$center = $this->em->getRepository('ChillMainBundle:Center')