Remove repositories from the API and switch cipher to rijndael-256
This commit is contained in:
committed by
James Brooks
parent
d788691006
commit
106c1a034a
@@ -20,14 +20,18 @@ class IncidentTest extends AbstractTestCase
|
||||
|
||||
public function testGetIncidents()
|
||||
{
|
||||
$incidents = factory('CachetHQ\Cachet\Models\Incident', 3)->create();
|
||||
|
||||
$this->get('/api/v1/incidents');
|
||||
$this->seeJson(['data' => []]);
|
||||
$this->seeJson(['id' => (string) $incidents[0]->id]);
|
||||
$this->seeJson(['id' => (string) $incidents[1]->id]);
|
||||
$this->seeJson(['id' => (string) $incidents[2]->id]);
|
||||
$this->assertResponseOk();
|
||||
}
|
||||
|
||||
public function testGetInvalidIncident()
|
||||
{
|
||||
$this->get('/api/v1/incidents/1');
|
||||
$this->get('/api/v1/incidents/0');
|
||||
$this->assertResponseStatus(404);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user