make tests forward compatible with DI 4.4

This commit is contained in:
Christian Flothmann 2019-07-24 18:52:34 +02:00
parent 1ce527a0ea
commit affede122b
1 changed files with 2 additions and 0 deletions

View File

@ -1170,6 +1170,7 @@ abstract class FrameworkExtensionTest extends TestCase
if ($resetCompilerPasses) {
$container->getCompilerPassConfig()->setOptimizationPasses([]);
$container->getCompilerPassConfig()->setRemovingPasses([]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
}
$container->getCompilerPassConfig()->setBeforeRemovingPasses([new AddConstraintValidatorsPass(), new TranslatorPass('translator.default', 'translation.reader')]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([new AddAnnotationsCachedReaderPass()]);
@ -1191,6 +1192,7 @@ abstract class FrameworkExtensionTest extends TestCase
$container->getCompilerPassConfig()->setOptimizationPasses([]);
$container->getCompilerPassConfig()->setRemovingPasses([]);
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
$container->compile();
return $container;