public function testDelete()
 {
     $id = $this->dashboard->getId();
     $this->client->request('DELETE', $this->getUrl('oro_api_delete_dashboard', ['id' => $id]));
     $result = $this->client->getResponse();
     $this->assertEmptyResponseStatusCodeEquals($result, 204);
     $this->client->request('DELETE', $this->getUrl('oro_api_delete_dashboard', ['id' => $id]));
     $result = $this->client->getResponse();
     $this->assertJsonResponseStatusCodeEquals($result, 404);
 }
Example #2
0
 public function testId()
 {
     $this->assertNull($this->dashboard->getId());
 }