Skip to content

Commit

Permalink
NTR: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Dec 10, 2024
1 parent dc4ab1e commit 159acfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/PHPUnit/Service/MollieApi/ShipmentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([]);



Expand All @@ -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);

Expand Down

0 comments on commit 159acfa

Please sign in to comment.