Removed unneeded checks
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user