diff --git a/tests/Mollie/API/Resources/CursorCollectionTest.php b/tests/Mollie/API/Resources/CursorCollectionTest.php index a22672ad..8c54e973 100644 --- a/tests/Mollie/API/Resources/CursorCollectionTest.php +++ b/tests/Mollie/API/Resources/CursorCollectionTest.php @@ -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 @@ -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()); } }