| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 30 | public function testAccountCommandAdmin() |
||
| 31 | { |
||
| 32 | $kernel = $this->createKernel(); |
||
| 33 | $kernel->boot(); |
||
| 34 | |||
| 35 | $application = new Application( $kernel ); |
||
| 36 | $application->add( new Command\AccountCommand() ); |
||
| 37 | |||
| 38 | $command = $application->find( 'aimeos:account' ); |
||
| 39 | $commandTester = new CommandTester( $command ); |
||
| 40 | $commandTester->execute( array( 'command' => $command->getName(), 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test', '--admin' => true ) ); |
||
| 41 | |||
| 42 | $this->assertEquals( 0, $commandTester->getStatusCode() ); |
||
| 43 | } |
||
| 44 | } |
||
| 45 |