public function onDelete() { $method = $this->resource->getMethod('DELETE'); $record = $this->parseRequest($method); $response = $this->doDelete($record, $this->version); $this->sendResponse($method, $response); }
/** * @expectedException \RuntimeException */ public function testGetMethodInvalid() { $resource = new Resource(Resource::STATUS_ACTIVE, '/foo'); $resource->getMethod('GET'); }