Skip to content

Commit 4ee6bc8

Browse files
committed
Update PendingMetricTest.php
1 parent 7418ad0 commit 4ee6bc8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/PendingMetricTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@
4242
->and($data->day())->toBe($date->day);
4343
});
4444

45+
it('can set model', function () {
46+
$pending = PendingMetric::make('page_views')->model('CustomMetric');
47+
48+
$data = $pending->toMetricData(1);
49+
50+
expect($data->model())->toBe('CustomMetric');
51+
});
52+
4553
it('can set measurable', function () {
4654
$user = createUser();
4755

0 commit comments

Comments
 (0)