From 6141876a3b434e6003c2afec90d284a5345be430 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Mon, 14 Sep 2020 00:08:55 +0200 Subject: [PATCH] Fix tests --- .../Behat/Context/Setup/PaymentPayPalContext.php | 1 + tests/Behat/Resources/services.xml | 5 +++++ tests/Behat/Service/DummyOrderDetailsApi.php | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 tests/Behat/Service/DummyOrderDetailsApi.php diff --git a/tests/Behat/Context/Setup/PaymentPayPalContext.php b/tests/Behat/Context/Setup/PaymentPayPalContext.php index f0ae818a..a0d15726 100644 --- a/tests/Behat/Context/Setup/PaymentPayPalContext.php +++ b/tests/Behat/Context/Setup/PaymentPayPalContext.php @@ -110,6 +110,7 @@ private function createPaymentMethod( 'client_id' => $this->clientId, 'client_secret' => 'SECRET', 'partner_attribution_id' => $this->partnerAttributionId, + 'merchant_id' => 'MERCHANT-ID', 'reports_sftp_username' => 'USERNAME', 'reports_sftp_password' => 'PASSWORD', ]); diff --git a/tests/Behat/Resources/services.xml b/tests/Behat/Resources/services.xml index 5e68ab40..2f003bdf 100644 --- a/tests/Behat/Resources/services.xml +++ b/tests/Behat/Resources/services.xml @@ -49,6 +49,11 @@ class="Tests\Sylius\PayPalPlugin\Behat\Service\DummyAuthorizeClientApi" /> + + 'COMPLETED', 'purchase_units' => [['payments' => ['captures' => [['id' => '123123']]]]]]; + } +}