Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ppelgrims committed Jun 7, 2024
1 parent 8868ac7 commit 7d33fc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Subscribers/SubscribeToMolliePaymentRefundsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ public function itDispatchesRefundStatusEventsWhenTheStatusIsNotInThePaymentHist
{
/** @var \Craftzing\Laravel\MollieWebhooks\Testing\Doubles\FakeRefund[] $refunds */
$refunds = $resolveRefunds($this->app);
$payment = FakePayment::fake($this->app)->withRefunds(...$refunds);
$payment = FakePayment::fake($this->app);
if ($refunds !== []) {
$payment->withRefunds(...$refunds);
}
$webhookCall = FakeMollieWebhookCall::new()
->forResourceId($payment->id())
->create();
Expand Down

0 comments on commit 7d33fc7

Please sign in to comment.