File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Tests/DependencyInjection/Compiler Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -88,26 +88,6 @@ public function testProcessThrowAnExceptionIfTheServiceIsNotASubclassOfCommand()
88
88
89
89
$ container ->compile ();
90
90
}
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
- }
111
91
}
112
92
113
93
class MyCommand extends Command
You can’t perform that action at this time.
0 commit comments