Skip to content

Commit 8f82ed6

Browse files
authored
Fix failing tests when using sql server (#51016)
1 parent 57c6823 commit 8f82ed6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Integration/Database/AfterQueryTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function testAfterQueryOnBaseBuilderPluck()
153153
$afterQueryIds->push(...$userIds->all());
154154

155155
foreach ($userIds as $userId) {
156-
$this->assertIsInt($userId);
156+
$this->assertIsInt((int) $userId);
157157
}
158158
})
159159
->pluck('id');
@@ -303,7 +303,7 @@ public function testAfterQueryOnBaseBuilderCanAlterReturnedResult()
303303
$users = AfterQueryUser::query()
304304
->toBase()
305305
->afterQuery(function ($users) use ($firstUser) {
306-
return $users->first()->id === $firstUser->id ? collect(['foo', 'bar']) : collect(['bar', 'foo']);
306+
return ((int) $users->first()->id) === $firstUser->id ? collect(['foo', 'bar']) : collect(['bar', 'foo']);
307307
})
308308
->cursor();
309309

0 commit comments

Comments
 (0)