lithium\tests\cases\data\ModelTest::testSaveWithFailedValidation PHP Method

testSaveWithFailedValidation() public method

    public function testSaveWithFailedValidation()
    {
        $data = array('title' => '', 'author_id' => 13);
        $record = MockPost::create($data);
        $result = $record->save(null, array('validate' => array('title' => 'A title must be present')));
        $this->assertFalse($result);
    }
ModelTest