Remove repositories from the API and switch cipher to rijndael-256

This commit is contained in:
James Brooks
2015-05-23 19:09:24 +01:00
committed by James Brooks
parent d788691006
commit 106c1a034a
24 changed files with 222 additions and 939 deletions

View File

@@ -20,14 +20,18 @@ class MetricTest extends AbstractTestCase
public function testGetMetrics()
{
$metrics = factory('CachetHQ\Cachet\Models\Metric', 3)->create();
$this->get('/api/v1/metrics');
$this->seeJson(['data' => []]);
$this->seeJson(['id' => (string) $metrics[0]->id]);
$this->seeJson(['id' => (string) $metrics[1]->id]);
$this->seeJson(['id' => (string) $metrics[2]->id]);
$this->assertResponseOk();
}
public function testGetInvalidMetric()
{
$this->get('/api/v1/metrics/1');
$this->get('/api/v1/metrics/0');
$this->assertResponseStatus(404);
}