lithium\tests\cases\console\command\CreateTest::testNonExistentCommand PHP Method

testNonExistentCommand() public method

    public function testNonExistentCommand()
    {
        $this->request->params['args'] = array('does_not_exist', 'anywhere');
        $create = new MockCreate(array('request' => $this->request));
        $result = $create->run('does_not_exist');
        $this->assertFalse($result);
        $expected = "does_not_exist could not be created.\n";
        $result = $create->response->error;
        $this->assertEqual($expected, $result);
    }