public function testSaveAndMark_deleted() { error_reporting(E_ERROR | E_PARSE); $aosQuotes = new AOS_Quotes(); $aosQuotes->name = 'test'; $aosQuotes->total_amt = 100; $aosQuotes->total_amt_usdollar = 100; $aosQuotes->save(); //test for record ID to verify that record is saved $this->assertTrue(isset($aosQuotes->id)); $this->assertEquals(36, strlen($aosQuotes->id)); //mark the record as deleted and verify that this record cannot be retrieved anymore. $aosQuotes->mark_deleted($aosQuotes->id); $result = $aosQuotes->retrieve($aosQuotes->id); $this->assertEquals(null, $result); }