Skip to content

Commit

Permalink
[Behat] Fix FailedRefundPaymentFactory after changing the order relation
Browse files Browse the repository at this point in the history
  • Loading branch information
GSadee committed Jun 9, 2021
1 parent d278a5d commit 545d719
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/Behat/Services/Factory/FailedRefundPaymentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Tests\Sylius\RefundPlugin\Behat\Services\Factory;

use Sylius\Component\Core\Model\OrderInterface;
use Sylius\RefundPlugin\Entity\RefundPaymentInterface;
use Sylius\RefundPlugin\Factory\RefundPaymentFactoryInterface;

Expand All @@ -20,7 +21,7 @@ public function __construct(RefundPaymentFactoryInterface $baseRefundPaymentFact
}

public function createWithData(
string $orderNumber,
OrderInterface $order,
int $amount,
string $currencyCode,
string $state,
Expand All @@ -32,7 +33,7 @@ public function createWithData(
throw new \Exception('Refund payment creation failed');
}

return $this->baseRefundPaymentFactory->createWithData($orderNumber, $amount, $currencyCode, $state, $paymentMethodId);
return $this->baseRefundPaymentFactory->createWithData($order, $amount, $currencyCode, $state, $paymentMethodId);
}

public function failRefundPaymentCreation(): void
Expand Down

0 comments on commit 545d719

Please sign in to comment.