Fix MetricPoint changes
This commit is contained in:
committed by
James Brooks
parent
db627f6e86
commit
3e5dc6a3f9
@@ -69,7 +69,7 @@ class MetricPointTest extends AbstractApiTestCase
|
||||
$this->beUser();
|
||||
|
||||
$metric = factory(Metric::class)->create();
|
||||
$timestamp = 1434369116;
|
||||
$timestamp = strtotime('now');
|
||||
$metricPoint = factory(MetricPoint::class)->make([
|
||||
'metric_id' => $metric->id,
|
||||
]);
|
||||
@@ -81,7 +81,7 @@ class MetricPointTest extends AbstractApiTestCase
|
||||
$response->assertStatus(200);
|
||||
$response->assertJsonFragment([
|
||||
'value' => $metricPoint->value,
|
||||
'created_at' => date('Y-m-d H:i:00', 1434369116),
|
||||
'created_at' => date('Y-m-d H:i:s', $timestamp),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user