示例#1
0
 public function testDeletePks()
 {
     UnitTest::delete(array(4, 5));
     try {
         $test = UnitTest::find(4);
         $this->fail();
     } catch (Mad_Model_Exception_RecordNotFound $e) {
         $msg = 'The record for id=4 was not found';
         $this->assertEquals($msg, $e->getMessage());
     }
     try {
         $test = UnitTest::find(5);
         $this->fail();
     } catch (Mad_Model_Exception_RecordNotFound $e) {
         $msg = 'The record for id=5 was not found';
         $this->assertEquals($msg, $e->getMessage());
     }
 }