/** * @depends testPut */ public function testDelete() { $this->client->request('DELETE', $this->getUrl('oro_api_delete_dashboard_widget', ['dashboardId' => $this->widget->getDashboard()->getId(), 'widgetId' => $this->widget->getId()])); $result = $this->client->getResponse(); $this->assertEmptyResponseStatusCodeEquals($result, 204); $this->client->request('DELETE', $this->getUrl('oro_api_delete_dashboard_widget', ['dashboardId' => $this->widget->getDashboard()->getId(), 'widgetId' => $this->widget->getId()])); $result = $this->client->getResponse(); $this->assertJsonResponseStatusCodeEquals($result, 404); }
public function testId() { $this->assertNull($this->widget->getId()); }