From 240a6636f200f5e58e416a23eaf729e2d4294811 Mon Sep 17 00:00:00 2001 From: Luca Gallinari Date: Fri, 13 Sep 2024 11:03:31 +0200 Subject: [PATCH] Temporarily remove behat services empty file --- src/Controller/PaymentController.php | 1 + tests/Application/config/services_test.yaml | 1 - tests/Behat/Resources/services.php | 9 --------- 3 files changed, 1 insertion(+), 10 deletions(-) delete mode 100644 tests/Behat/Resources/services.php diff --git a/src/Controller/PaymentController.php b/src/Controller/PaymentController.php index 32fdb6b..71bc080 100644 --- a/src/Controller/PaymentController.php +++ b/src/Controller/PaymentController.php @@ -82,6 +82,7 @@ public function statusAction(string $payumToken): Response } $syliusPayment = $this->retrievePaymentFromToken($token); + // todo: check if the payment is already completed or cancelled $paymentDetails = $syliusPayment->getDetails(); if (!PaymentDetailsHelper::areValid($paymentDetails)) { throw $this->createAccessDeniedException(); diff --git a/tests/Application/config/services_test.yaml b/tests/Application/config/services_test.yaml index 03c90a1..ee48f6a 100644 --- a/tests/Application/config/services_test.yaml +++ b/tests/Application/config/services_test.yaml @@ -1,6 +1,5 @@ imports: - { resource: "services/test/*.php" } - - { resource: "../../Behat/Resources/services.php" } - { resource: "../../../vendor/sylius/sylius/src/Sylius/Behat/Resources/config/services.xml" } # workaround needed for strange "test.client.history" problem diff --git a/tests/Behat/Resources/services.php b/tests/Behat/Resources/services.php deleted file mode 100644 index 8cc3ee1..0000000 --- a/tests/Behat/Resources/services.php +++ /dev/null @@ -1,9 +0,0 @@ -import('services/*.php'); -};