We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7418ad0 commit 4ee6bc8Copy full SHA for 4ee6bc8
tests/PendingMetricTest.php
@@ -42,6 +42,14 @@
42
->and($data->day())->toBe($date->day);
43
});
44
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
53
it('can set measurable', function () {
54
$user = createUser();
55
0 commit comments