Cilex\Tests\ApplicationTest::testCommand PHP Method

testCommand() public method

Tests the command method to see if the command is properly set and the Cilex application is added as container.
public testCommand ( )
    public function testCommand()
    {
        $this->assertFalse($this->app['console']->has('demo:greet'));
        $this->app->command(new GreetCommand());
        $this->assertTrue($this->app['console']->has('demo:greet'));
        $this->assertSame($this->app, $this->app['console']->get('demo:greet')->getContainer());
    }