From afaede9ee5eaa54714f869baf348f6aca5ddb076 Mon Sep 17 00:00:00 2001 From: Oleh Usik Date: Tue, 28 Jul 2020 18:05:54 +0300 Subject: [PATCH] minor fix --- .../Resolver/Customer/SaveCartDataWithPayflowProTest.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/SaveCartDataWithPayflowProTest.php b/dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/SaveCartDataWithPayflowProTest.php index d5e0b902311f8..0de3e696613b4 100644 --- a/dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/SaveCartDataWithPayflowProTest.php +++ b/dev/tests/integration/testsuite/Magento/PaypalGraphQl/Model/Resolver/Customer/SaveCartDataWithPayflowProTest.php @@ -81,8 +81,6 @@ public function testPlaceOrderAndSaveDataForFuturePayflowPro(): void * @magentoDataFixture Magento/GraphQl/Quote/_files/set_flatrate_shipping_method.php * * @return void - * - * @SuppressWarnings(PHPMD.ExcessiveMethodLength) */ public function testPlaceOrderAndNotSaveDataForFuturePayflowPro(): void { @@ -97,6 +95,7 @@ public function testPlaceOrderAndNotSaveDataForFuturePayflowPro(): void * @param $isActivePaymentTokenEnabler * * @return array + * @SuppressWarnings(PHPMD.ExcessiveMethodLength) */ private function placeOrderPayflowPro($isActivePaymentTokenEnabler) { @@ -241,7 +240,11 @@ private function getVaultCartData() { /** @var PaymentTokenManagement $tokenManagement */ $tokenManagement = $this->objectManager->get(PaymentTokenManagement::class); - $token = $tokenManagement->getByGatewayToken('B70CCC236815', 'payflowpro',1); + $token = $tokenManagement->getByGatewayToken( + 'B70CCC236815', + 'payflowpro', + 1 + ); /** @var PaymentTokenRepository $tokenRepository */ $tokenRepository = $this->objectManager->get(PaymentTokenRepository::class); return $tokenRepository->getById($token->getEntityId());