Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lruozzi9 committed Feb 15, 2024
1 parent af0afe1 commit c9cf0d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Behat/Context/Api/PagolightContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,12 @@ public function pagolightNotifyTheStoreAboutTheFailedPayment(): void
{
$payment = $this->getCurrentPayment();
[$paymentCaptureSecurityToken, $paymentNotifySecurityToken] = $this->getCurrentPaymentSecurityTokens($payment);
$webhookToken = $this->webhookTokenRepository->findOneByPayment($payment);
Assert::isInstanceOf($webhookToken, WebhookTokenInterface::class);

$this->notifyPaymentState($paymentNotifySecurityToken, [
'status' => PaymentState::CANCELLED,
'token' => 'pagolight',
'token' => $webhookToken->getToken(),
]);
}

Expand Down

0 comments on commit c9cf0d7

Please sign in to comment.