test metric points by latests

This commit is contained in:
Joe Cohen
2018-07-02 19:22:01 -05:00
parent 93d05bdc07
commit 66ccb2a56f
3 changed files with 42 additions and 4 deletions

View File

@@ -85,9 +85,11 @@ $factory->define(Metric::class, function ($faker) {
$factory->define(MetricPoint::class, function ($faker) {
return [
'metric_id' => factory(Metric::class)->create()->id,
'value' => mt_rand(1, 100),
'counter' => 1,
'metric_id' => factory(Metric::class)->create()->id,
'value' => mt_rand(1, 100),
'counter' => 1,
'created_at' => Carbon::now(),
'updated_at' => Carbon::now(),
];
});