Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vanthao03596 authored and actions-user committed May 8, 2021
1 parent aab77dd commit 49d2305
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions tests/CursorPaginatorLoadMorphCountTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Vanthao03596\LaravelCursorPaginate\Tests;

use Illuminate\Database\Eloquent\Collection;
use Vanthao03596\LaravelCursorPaginate\AbstractCursorPaginator;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Vanthao03596\LaravelCursorPaginate\AbstractCursorPaginator;

class CursorPaginatorLoadMorphCountTest extends TestCase
{
Expand All @@ -19,8 +19,7 @@ public function testCollectionLoadMorphCountCanChainOnThePaginator()
$items = m::mock(Collection::class);
$items->shouldReceive('loadMorphCount')->once()->with('parentable', $relations);

$p = (new class extends AbstractCursorPaginator
{
$p = (new class extends AbstractCursorPaginator {
//
})->setCollection($items);

Expand Down
5 changes: 2 additions & 3 deletions tests/CursorPaginatorLoadMorphTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Vanthao03596\LaravelCursorPaginate\Tests;

use Illuminate\Database\Eloquent\Collection;
use Vanthao03596\LaravelCursorPaginate\AbstractCursorPaginator;
use Mockery as m;
use PHPUnit\Framework\TestCase;
use Vanthao03596\LaravelCursorPaginate\AbstractCursorPaginator;

class CursorPaginatorLoadMorphTest extends TestCase
{
Expand All @@ -19,8 +19,7 @@ public function testCollectionLoadMorphCanChainOnThePaginator()
$items = m::mock(Collection::class);
$items->shouldReceive('loadMorph')->once()->with('parentable', $relations);

$p = (new class extends AbstractCursorPaginator
{
$p = (new class extends AbstractCursorPaginator {
//
})->setCollection($items);

Expand Down

0 comments on commit 49d2305

Please sign in to comment.