Skip to content

Commit

Permalink
Apply fixes from StyleCI (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tucker-Eric authored Jul 10, 2018
1 parent d9b56a4 commit 44e79ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/ModelFilterChildTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ public function testGetModelFilterClass()

public function testPaginationWorksOnBelongsToMany()
{
if(method_exists(\Illuminate\Database\Eloquent\Relations\Relation::class, 'macro')) {
if (method_exists(\Illuminate\Database\Eloquent\Relations\Relation::class, 'macro')) {
$client = Client::query()->first();
$managers = $client->managers()->filter()->paginateFilter();
$this->assertInstanceOf(\Illuminate\Database\Eloquent\Relations\Pivot::class, $managers->first()->pivot);
} else {
// Paginating relations will work before L5.4 but won't contain the pivot attribute
$this->markTestSkipped(
'Pagination is overwritten with a Relation macro to append the pivot to pivotable relations.'
. ' This was introduced in Laravel 5.4 when Relations implemented the Macroable trait.'
. ' https://github.com/illuminate/database/commit/4d13b0f80439bd17befb0fd646a117b818efdb14'
.' This was introduced in Laravel 5.4 when Relations implemented the Macroable trait.'
.' https://github.com/illuminate/database/commit/4d13b0f80439bd17befb0fd646a117b818efdb14'
);
}
}
Expand Down

0 comments on commit 44e79ed

Please sign in to comment.