File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public function it_gets_the_projection_from_a_single_key()
149
149
$ log = $ this ->createModelWithProjections (Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
150
150
$ this ->createModelWithProjections (Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
151
151
152
- $ numberOfProjections = Projection::key ($ log ->id )->count ();
152
+ $ numberOfProjections = Projection::forKey ($ log ->id )->count ();
153
153
154
154
$ this ->assertEquals (1 , $ numberOfProjections );
155
155
}
@@ -160,7 +160,7 @@ public function it_gets_the_projections_from_multiples_keys()
160
160
$ log = $ this ->createModelWithProjections (Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
161
161
$ anotherLog = $ this ->createModelWithProjections (Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
162
162
163
- $ numberOfProjections = Projection::key ([$ log ->id , $ anotherLog ->id ])->count ();
163
+ $ numberOfProjections = Projection::forKey ([$ log ->id , $ anotherLog ->id ])->count ();
164
164
165
165
$ this ->assertEquals (2 , $ numberOfProjections );
166
166
}
You can’t perform that action at this time.
0 commit comments