From 62ac2780cf34b01fe0857fe7f858584d5bc2b35d Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Thu, 18 Jun 2015 18:13:37 +0100 Subject: [PATCH] Removed unneeded checks --- tests/Api/ComponentTest.php | 2 +- tests/Api/IncidentTest.php | 1 - tests/Api/MetricPointTest.php | 1 - tests/Api/MetricTest.php | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tests/Api/ComponentTest.php b/tests/Api/ComponentTest.php index dfe77a38..e503712e 100644 --- a/tests/Api/ComponentTest.php +++ b/tests/Api/ComponentTest.php @@ -38,8 +38,8 @@ class ComponentTest extends AbstractTestCase public function testPostComponentUnauthorized() { $this->post('/api/v1/components'); + $this->assertResponseStatus(401); - $this->seeJson(['message' => 'You are not authorized to view this content.', 'status_code' => 401]); } public function testPostComponentNoData() diff --git a/tests/Api/IncidentTest.php b/tests/Api/IncidentTest.php index 0d90c958..b764d45b 100644 --- a/tests/Api/IncidentTest.php +++ b/tests/Api/IncidentTest.php @@ -39,7 +39,6 @@ class IncidentTest extends AbstractTestCase { $this->post('/api/v1/incidents'); $this->assertResponseStatus(401); - $this->seeJson(['message' => 'You are not authorized to view this content.', 'status_code' => 401]); } public function testPostIncidentNoData() diff --git a/tests/Api/MetricPointTest.php b/tests/Api/MetricPointTest.php index e0160d17..a3c25015 100644 --- a/tests/Api/MetricPointTest.php +++ b/tests/Api/MetricPointTest.php @@ -40,7 +40,6 @@ class MetricPointTest extends AbstractTestCase $this->post("/api/v1/metrics/{$metric->id}/points"); $this->assertResponseStatus(401); - $this->seeJson(['message' => 'You are not authorized to view this content.', 'status_code' => 401]); } public function testPostMetricPoint() diff --git a/tests/Api/MetricTest.php b/tests/Api/MetricTest.php index 90acb709..ef16f959 100644 --- a/tests/Api/MetricTest.php +++ b/tests/Api/MetricTest.php @@ -39,7 +39,6 @@ class MetricTest extends AbstractTestCase { $this->post('/api/v1/metrics'); $this->assertResponseStatus(401); - $this->seeJson(['message' => 'You are not authorized to view this content.', 'status_code' => 401]); } public function testPostMetricNoData()