diff --git a/tests/PHPUnit/Service/MollieApi/ShipmentTest.php b/tests/PHPUnit/Service/MollieApi/ShipmentTest.php index 55ab5cbcd..acf0818ca 100644 --- a/tests/PHPUnit/Service/MollieApi/ShipmentTest.php +++ b/tests/PHPUnit/Service/MollieApi/ShipmentTest.php @@ -135,7 +135,7 @@ public function testShipItem() ->method('createShipment') ->willReturn($this->createMock(MollieShipment::class)); - $this->mollieOrder->method('lines')->willReturn($this->createMock(OrderLineCollection::class)); + $this->mollieOrder->method('lines')->willReturn([]); @@ -151,7 +151,7 @@ public function testShipItemCannotBeShippedException() ->expects($this->once()) ->method('createShipment') ->willThrowException(new ApiException()); - $this->mollieOrder->method('lines')->willReturn($this->createMock(OrderLineCollection::class)); + $this->mollieOrder->method('lines')->willReturn([]); $this->expectException(MollieOrderCouldNotBeShippedException::class);