File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -34,24 +34,4 @@ public function testRegisterCommands()
34
34
35
35
$ this ->assertNull ($ bundle2 ->registerCommands ($ app ));
36
36
}
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
- }
57
37
}
You can’t perform that action at this time.
0 commit comments