コード例 #1
0
 /**
  * @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);
 }
コード例 #2
0
ファイル: WidgetTest.php プロジェクト: ramunasd/platform
 public function testId()
 {
     $this->assertNull($this->widget->getId());
 }