From 46f15b061fe368c7813eb8951301a12b5eff602d Mon Sep 17 00:00:00 2001 From: sixer1182 Date: Tue, 26 Nov 2019 10:23:34 +0100 Subject: [PATCH] [bugfix] (PHPLIB-275) Refactor tests. --- test/unit/Resources/PaymentCancelTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/Resources/PaymentCancelTest.php b/test/unit/Resources/PaymentCancelTest.php index 56abc43d..bb17815a 100644 --- a/test/unit/Resources/PaymentCancelTest.php +++ b/test/unit/Resources/PaymentCancelTest.php @@ -426,7 +426,8 @@ public function allowedErrorCodesDuringChargeCancel(): array { return [ 'already cancelled' => [ApiResponseCodes::API_ERROR_ALREADY_CANCELLED, false], - 'already chargedBack' => [ApiResponseCodes::API_ERROR_ALREADY_CHARGED, false], + 'already charged' => [ApiResponseCodes::API_ERROR_ALREADY_CHARGED, false], + 'already chargedBack' => [ApiResponseCodes::API_ERROR_ALREADY_CHARGED_BACK, false], 'other' => [ApiResponseCodes::API_ERROR_BASKET_ITEM_IMAGE_INVALID_URL, true] ]; }