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

testRunNotSaved() public method

public testRunNotSaved ( )
    public function testRunNotSaved()
    {
        $this->request->params = array('library' => 'not_here', 'command' => 'create', 'action' => 'model', 'args' => array('model', 'Posts'));
        $create = new MockCreate(array('request' => $this->request));
        $result = $create->run('model');
        $this->assertFalse($result);
        $expected = "model could not be created.\n";
        $result = $create->response->error;
        $this->assertEqual($expected, $result);
    }