Fixup Service Instantiation and enforce application booting.

This commit is contained in:
Benoît Burnichon
2015-11-03 10:54:06 +01:00
parent 27bd211b0e
commit 38eab1f97e
2 changed files with 10 additions and 8 deletions

View File

@@ -14,6 +14,8 @@ class module_console_systemTemplateGeneratorTest extends \PhraseanetTestCase
{
$application = new CLI('test', null, 'test');
$application->command(new module_console_systemTemplateGenerator('system:templateGenerator'));
// Application should be booted before executing commands
$application->boot();
$command = $application['console']->find('system:templateGenerator');
$commandTester = new CommandTester($command);