/** * delete the new record * * @depends testGetRecord */ function testDeleteRecord() { // sleep for atleast one second between methods, it is only 'eventual consistency' sleep(1); $itemID = $this->test_item_id; // run the query to delete the data $result = SimpleDB::delete($this->test_domain, $itemID); $this->assertTrue($result); }
public function delete($pos) { if ($this->fileWrite == false) { //if not saving changes to file if (file_put_contents($this->walPath, '0;' . $pos . PHP_EOL, FILE_APPEND) === false) { return false; } else { if (++$this->opNumber > $this->maxOps) { return $this->saveLoggedData($this->dbFileVer); } } } return parent::delete($pos); }