Skip to content

Commit

Permalink
backport: Add PHP 7.2 to travis laravel#20258
Browse files Browse the repository at this point in the history
  • Loading branch information
9bo9bo committed Mar 6, 2019
1 parent 21c7dfc commit 786b37f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/Database/DatabaseEloquentIntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -1005,10 +1005,12 @@ public function testForPageAfterIdCorrectlyPaginates()
EloquentTestUser::create(['id' => 2, 'email' => '[email protected]']);

$results = EloquentTestUser::forPageAfterId(15, 1);
$this->assertEquals(1, count($results));
$this->assertInstanceOf('Illuminate\Database\Eloquent\Builder', $results);
$this->assertEquals(2, $results->first()->id);

$results = EloquentTestUser::orderBy('id', 'desc')->forPageAfterId(15, 1);
$this->assertEquals(1, count($results));
$this->assertInstanceOf('Illuminate\Database\Eloquent\Builder', $results);
$this->assertEquals(2, $results->first()->id);
}

public function testMorphToRelationsAcrossDatabaseConnections()
Expand Down

0 comments on commit 786b37f

Please sign in to comment.