public function testDeletePostAction() { $entityId = $this->sampleObjectLoader->loadPost(); $this->client->request('DELETE', '/api/v1/posts/' . $entityId . '?apikey=' . $this->apikey); $this->assertStatusCode(204, $this->client); }