Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function testSetupCommand() |
||
15 | { |
||
16 | $kernel = $this->createKernel(); |
||
17 | $kernel->boot(); |
||
18 | |||
19 | $container = static::getContainer(); |
||
20 | |||
21 | $application = new Application( $kernel ); |
||
22 | $application->add( new Command\SetupCommand( $container ) ); |
||
23 | |||
24 | $command = $application->find( 'aimeos:setup' ); |
||
25 | $commandTester = new CommandTester( $command ); |
||
26 | $commandTester->execute( array( 'command' => $command->getName(), 'site' => 'unittest', 'tplsite' => 'unittest', '--option' => 'setup/default/demo:0' ) ); |
||
27 | |||
28 | $this->assertEquals( 0, $commandTester->getStatusCode() ); |
||
29 | } |
||
31 |