diff --git a/tests/ContainerTrait.php b/tests/ContainerTrait.php index 3c2a2e9185..0b220a7c90 100644 --- a/tests/ContainerTrait.php +++ b/tests/ContainerTrait.php @@ -92,7 +92,7 @@ private function replaceContainerInstance(): void private function attachContainerToContainerFactory(): void { if (!$this->container->isCompiled()) { - $this->container->compile(); + $this->compileContainer(); } $reflectionClass = new ReflectionClass(ContainerFactory::getInstance()); $reflectionProperty = $reflectionClass->getProperty('symfonyContainer');