diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php index 06926e0a0b2e..ccd328cea12e 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php @@ -411,30 +411,16 @@ public function testSetBillingAddressIfCustomerIsNotOwnerOfAddress() public function testSetBillingAddressOnNonExistentCart() { $maskedQuoteId = 'non_existent_masked_id'; - $query = $this->getCartQuery($maskedQuoteId); - $this->graphQlQuery($query, [], '', $this->getHeaderMap()); - } - - /** - * @param string $maskedQuoteId - * @return string - */ - private function getCartQuery( - string $maskedQuoteId - ) : string { - return <<graphQlQuery($query, [], '', $this->getHeaderMap()); } /** diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetPaymentMethodOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetPaymentMethodOnCartTest.php index a2bbbfe135fa..91c98d2f13f4 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetPaymentMethodOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetPaymentMethodOnCartTest.php @@ -159,30 +159,16 @@ public function testSetPaymentMethodToAnotherCustomerCart() public function testPaymentMethodOnNonExistentCart() { $maskedQuoteId = 'non_existent_masked_id'; - $query = $this->getCartQuery($maskedQuoteId); - $this->graphQlQuery($query, [], '', $this->getHeaderMap()); - } - - /** - * @param string $maskedQuoteId - * @return string - */ - private function getCartQuery( - string $maskedQuoteId - ) : string { - return <<graphQlQuery($query, [], '', $this->getHeaderMap()); } /** diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetBillingAddressOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetBillingAddressOnCartTest.php index 0bb7c9741197..8f8e5419a9ff 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetBillingAddressOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetBillingAddressOnCartTest.php @@ -251,30 +251,16 @@ public function testSetBillingAddressFromAddressBook() public function testSetBillingAddressOnNonExistentCart() { $maskedQuoteId = 'non_existent_masked_id'; - $query = $this->getCartQuery($maskedQuoteId); - $this->graphQlQuery($query); - } - - /** - * @param string $maskedQuoteId - * @return string - */ - private function getCartQuery( - string $maskedQuoteId - ) : string { - return <<graphQlQuery($query); } /** diff --git a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetPaymentMethodOnCartTest.php b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetPaymentMethodOnCartTest.php index 5117fce04a91..fbfa53b7d643 100644 --- a/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetPaymentMethodOnCartTest.php +++ b/dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/SetPaymentMethodOnCartTest.php @@ -133,7 +133,15 @@ public function testSetPaymentMethodToCustomerCart() public function testSetPaymentOnNonExistentCart() { $maskedQuoteId = 'non_existent_masked_id'; - $query = $this->getCartQuery($maskedQuoteId); + $query = <<graphQlQuery($query); } @@ -166,28 +174,6 @@ private function prepareMutationQuery( QUERY; } - /** - * @param string $maskedQuoteId - * @return string - */ - private function getCartQuery( - string $maskedQuoteId - ) : string { - return <<