Skip to content

Commit 02ea160

Browse files
committed
Merge branch '3.1'
* 3.1: [TwigBundle] fixed usage of getSource in tests Trim constant values in XmlFileLoader move test to the HttpKernel component [TwigBridge] fixed Twig_Source required argument [HttpKernel] Fix a regression in the RequestDataCollector [HttpKernel] Refactor a RequestDataCollector test case to use a data provider
2 parents fbecbe5 + 9f4cb23 commit 02ea160

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Tests/DependencyInjection/Compiler/AddConsoleCommandPassTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -90,26 +90,6 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
9090

9191
$container->compile();
9292
}
93-
94-
public function testHttpKernelRegisterCommandsIngoreCommandAsAService()
95-
{
96-
$container = new ContainerBuilder();
97-
$container->addCompilerPass(new AddConsoleCommandPass());
98-
$definition = new Definition('Symfony\Bundle\FrameworkBundle\Tests\DependencyInjection\Compiler\MyCommand');
99-
$definition->addTag('console.command');
100-
$container->setDefinition('my-command', $definition);
101-
$container->compile();
102-
103-
$application = $this->getMock('Symfony\Component\Console\Application');
104-
// Never called, because it's the
105-
// Symfony\Bundle\FrameworkBundle\Console\Application that register
106-
// commands as a service
107-
$application->expects($this->never())->method('add');
108-
109-
$bundle = new ExtensionPresentBundle();
110-
$bundle->setContainer($container);
111-
$bundle->registerCommands($application);
112-
}
11393
}
11494

11595
class MyCommand extends Command

0 commit comments

Comments
 (0)