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()