From 3393f47cbff63876a806a98aa739ba2df01dcf3d Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Mon, 30 Oct 2023 15:32:28 +0100 Subject: [PATCH] fix test --- tests/Mollie/API/Resources/CursorCollectionTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) 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()); } }