Skip to content

Commit

Permalink
Fix failing tests when using sql server (#51016)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdebrauwer authored Apr 11, 2024
1 parent 57c6823 commit 8f82ed6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Integration/Database/AfterQueryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public function testAfterQueryOnBaseBuilderPluck()
$afterQueryIds->push(...$userIds->all());

foreach ($userIds as $userId) {
$this->assertIsInt($userId);
$this->assertIsInt((int) $userId);
}
})
->pluck('id');
Expand Down Expand Up @@ -303,7 +303,7 @@ public function testAfterQueryOnBaseBuilderCanAlterReturnedResult()
$users = AfterQueryUser::query()
->toBase()
->afterQuery(function ($users) use ($firstUser) {
return $users->first()->id === $firstUser->id ? collect(['foo', 'bar']) : collect(['bar', 'foo']);
return ((int) $users->first()->id) === $firstUser->id ? collect(['foo', 'bar']) : collect(['bar', 'foo']);
})
->cursor();

Expand Down

0 comments on commit 8f82ed6

Please sign in to comment.