Aimeos\ShopBundle\Tests\Command\AccountCommandTest::testAccountCommandNew PHP Method

testAccountCommandNew() public method

    public function testAccountCommandNew()
    {
        $kernel = $this->createKernel();
        $kernel->boot();
        $application = new Application($kernel);
        $application->add(new Command\AccountCommand());
        $command = $application->find('aimeos:account');
        $commandTester = new CommandTester($command);
        $commandTester->execute(array('command' => $command->getName(), 'site' => 'unittest', 'email' => '[email protected]', '--password' => 'test'));
        $this->assertEquals(0, $commandTester->getStatusCode());
    }