Skip to content

Commit 1b54501

Browse files
committed
fixed some composer.json to make standalone component tests pass
1 parent 5dc93f0 commit 1b54501

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

Tests/Bundle/BundleTest.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,24 +34,4 @@ public function testRegisterCommands()
3434

3535
$this->assertNull($bundle2->registerCommands($app));
3636
}
37-
38-
public function testRegisterCommandsIngoreCommandAsAService()
39-
{
40-
$container = new ContainerBuilder();
41-
$container->addCompilerPass(new AddConsoleCommandPass());
42-
$definition = new Definition('Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\Command\FooCommand');
43-
$definition->addTag('console.command');
44-
$container->setDefinition('my-command', $definition);
45-
$container->compile();
46-
47-
$application = $this->getMock('Symfony\Component\Console\Application');
48-
// Never called, because it's the
49-
// Symfony\Bundle\FrameworkBundle\Console\Application that register
50-
// commands as a service
51-
$application->expects($this->never())->method('add');
52-
53-
$bundle = new ExtensionPresentBundle();
54-
$bundle->setContainer($container);
55-
$bundle->registerCommands($application);
56-
}
5737
}

0 commit comments

Comments
 (0)