Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Oct 30, 2023
1 parent 4d389ef commit 3393f47
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/Mollie/API/Resources/CursorCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

use Mollie\Api\MollieApiClient;
use Mollie\Api\Resources\LazyCollection;
use Mollie\Api\Resources\MandateCollection;
use Mollie\Api\Resources\OrderCollection;
use Mollie\Api\Types\MandateStatus;
use PHPUnit\Framework\TestCase;

class CursorCollectionTest extends TestCase
Expand Down Expand Up @@ -115,14 +113,12 @@ public function testWillReturnNullIfNoPreviousResultIsAvailable()

public function testAutoPaginatorReturnsLazyCollection()
{
$collection = new MandateCollection(
$collection = new OrderCollection(
$this->createMock(MollieApiClient::class),
1,
(object) []
);

$this->assertInstanceOf(LazyCollection::class, $collection = $collection->getAutoIterator());

$collection->whereStatus(MandateStatus::STATUS_PENDING);
$this->assertInstanceOf(LazyCollection::class, $collection->getAutoIterator());
}
}

0 comments on commit 3393f47

Please sign in to comment.