Skip to content

Commit e672859

Browse files
committed
Fix pagination test to not get tripped up on timestamps
1 parent f38a4ab commit e672859

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Integration/CachedBuilderPaginationTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ public function testPaginationIsCached()
3939
$liveResults = (new UncachedAuthor)
4040
->paginate(3);
4141

42-
$this->assertEquals($cachedResults->toArray(), $authors->toArray());
43-
$this->assertEquals($liveResults->toArray(), $authors->toArray());
42+
$this->assertEquals($cachedResults, $authors);
43+
$this->assertEquals($liveResults->pluck("email"), $authors->pluck("email"));
44+
$this->assertEquals($liveResults->pluck("name"), $authors->pluck("name"));
4445
}
4546

4647
public function testPaginationReturnsCorrectLinks()

0 commit comments

Comments
 (0)