/**
  * Method to test delete().
  *
  * @return void
  *
  * @covers Windwalker\Model\CrudModel::delete
  */
 public function testDelete()
 {
     $crudModel = new CrudModel(array('name' => 'CrudModel', 'prefix' => 'Stub', 'ignore_request' => true), $this->getContainerForSave());
     $id = 1;
     $originalData = $crudModel->getItem($id);
     // Execute method
     $crudModel->delete($id);
     // $id is pass by reference which will be cast into array
     $result = $crudModel->getItem($id[0]);
     $this->assertNull($result->id);
     $this->assertNull($result->foo);
     $this->assertNull($result->type);
     $this->assertEmpty($result->params);
 }