Skip to content

Commit 170a675

Browse files
minor symfony#32615 fix tests (xabbuh)
This PR was merged into the 3.4 branch. Discussion ---------- fix tests | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- a616e18 fix tests
2 parents aece546 + a616e18 commit 170a675

File tree

5 files changed

+6
-0
lines changed

5 files changed

+6
-0
lines changed

src/Symfony/Bundle/DebugBundle/Tests/DependencyInjection/DebugExtensionTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ private function compileContainer(ContainerBuilder $container)
5252
{
5353
$container->getCompilerPassConfig()->setOptimizationPasses([]);
5454
$container->getCompilerPassConfig()->setRemovingPasses([]);
55+
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
5556
$container->compile();
5657
}
5758
}

src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ protected function getContainerBuilder()
194194
$buildContainer = \Closure::bind(function () { return $this->buildContainer(); }, $kernel, \get_class($kernel));
195195
$container = $buildContainer();
196196
$container->getCompilerPassConfig()->setRemovingPasses([]);
197+
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
197198
$container->compile();
198199
} else {
199200
(new XmlFileLoader($container = new ContainerBuilder(), new FileLocator()))->load($kernel->getContainer()->getParameter('debug.container.dump'));

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/CompleteConfigurationTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ protected function getContainer($file)
617617

618618
$container->getCompilerPassConfig()->setOptimizationPasses([]);
619619
$container->getCompilerPassConfig()->setRemovingPasses([]);
620+
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
620621
$container->compile();
621622

622623
return $container;

src/Symfony/Bundle/SecurityBundle/Tests/DependencyInjection/SecurityExtensionTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ protected function getRawContainer()
321321

322322
$container->getCompilerPassConfig()->setOptimizationPasses([]);
323323
$container->getCompilerPassConfig()->setRemovingPasses([]);
324+
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
324325

325326
return $container;
326327
}

src/Symfony/Bundle/TwigBundle/Tests/DependencyInjection/TwigExtensionTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ public function testRuntimeLoader()
266266
$container->register('foo', '%foo%')->addTag('twig.runtime');
267267
$container->addCompilerPass(new RuntimeLoaderPass(), PassConfig::TYPE_BEFORE_REMOVING);
268268
$container->getCompilerPassConfig()->setRemovingPasses([]);
269+
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
269270
$container->compile();
270271

271272
$loader = $container->getDefinition('twig.runtime_loader');
@@ -327,6 +328,7 @@ private function compileContainer(ContainerBuilder $container)
327328
{
328329
$container->getCompilerPassConfig()->setOptimizationPasses([]);
329330
$container->getCompilerPassConfig()->setRemovingPasses([]);
331+
$container->getCompilerPassConfig()->setAfterRemovingPasses([]);
330332
$container->compile();
331333
}
332334

0 commit comments

Comments
 (0)