Skip to content

Commit d12a681

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [TwigBundle] fixed usage of getSource in tests Trim constant values in XmlFileLoader move test to the HttpKernel component [TwigBridge] fixed Twig_Source required argument
2 parents d86eb68 + a48e6f8 commit d12a681

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
@@ -88,26 +88,6 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
8888

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

11393
class MyCommand extends Command

0 commit comments

Comments
 (0)