/** * @expectedException ActiveRecord\ActiveRecordException */ public function test_delete_with_no_primary_key_defined() { Author::table()->pk = array(); $author = author::first(); $author->delete(); }
/** * @expectedException ActiveRecord\ActiveRecordException */ public function testDeleteWithNoPrimaryKeyDefined() { Author::table()->pk = array(); $author = author::first(); $author->delete(); }