Skip to content

Commit f3c44fc

Browse files
authored
Fix test for scopeForKey
1 parent 2a3098b commit f3c44fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/ProjectionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public function it_gets_the_projection_from_a_single_key()
149149
$log = $this->createModelWithProjections(Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
150150
$this->createModelWithProjections(Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
151151

152-
$numberOfProjections = Projection::key($log->id)->count();
152+
$numberOfProjections = Projection::forKey($log->id)->count();
153153

154154
$this->assertEquals(1, $numberOfProjections);
155155
}
@@ -160,7 +160,7 @@ public function it_gets_the_projections_from_multiples_keys()
160160
$log = $this->createModelWithProjections(Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
161161
$anotherLog = $this->createModelWithProjections(Log::class, [SinglePeriodProjectionWithUniqueKey::class]);
162162

163-
$numberOfProjections = Projection::key([$log->id, $anotherLog->id])->count();
163+
$numberOfProjections = Projection::forKey([$log->id, $anotherLog->id])->count();
164164

165165
$this->assertEquals(2, $numberOfProjections);
166166
}

0 commit comments

Comments
 (0)