Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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());

0 comments on commit afaede9

Please sign in to comment.