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