Skip to content

Commit 8ab0ab3

Browse files
committed
420 - Test coverage: GetAvailablePaymentMethodsTest for Guest
1. Fix typo errors
1 parent 9395e76 commit 8ab0ab3

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Guest/GetAvailablePaymentMethodsTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function setUp()
4949
*/
5050
public function testGetPaymentMethodsFromGuestCart()
5151
{
52-
$maskedQuoteId = $this->getMaskedQuoteIdByReversedQuoteId('test_order_with_simple_product_without_address');
52+
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId('test_order_with_simple_product_without_address');
5353
$query = $this->getCartAvailablePaymentMethodsQuery($maskedQuoteId);
5454
$response = $this->graphQlQuery($query);
5555

@@ -75,7 +75,7 @@ public function testGetPaymentMethodsFromGuestCart()
7575
*/
7676
public function testGetPaymentMethodsFromAnotherCustomerCart()
7777
{
78-
$maskedQuoteId = $this->getMaskedQuoteIdByReversedQuoteId('test_order_1');
78+
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId('test_order_1');
7979
$query = $this->getCartAvailablePaymentMethodsQuery($maskedQuoteId);
8080

8181
$this->expectExceptionMessage(
@@ -90,7 +90,7 @@ public function testGetPaymentMethodsFromAnotherCustomerCart()
9090
*/
9191
public function testGetPaymentMethodsIfPaymentsAreNotSet()
9292
{
93-
$maskedQuoteId = $this->getMaskedQuoteIdByReversedQuoteId('test_order_with_simple_product_without_address');
93+
$maskedQuoteId = $this->getMaskedQuoteIdByReservedOrderId('test_order_with_simple_product_without_address');
9494
$query = $this->getCartAvailablePaymentMethodsQuery($maskedQuoteId);
9595
$response = $this->graphQlQuery($query);
9696

@@ -128,13 +128,13 @@ private function getCartAvailablePaymentMethodsQuery(
128128
}
129129

130130
/**
131-
* @param string $reversedQuoteId
131+
* @param string $reservedOrderId
132132
* @return string
133133
*/
134-
private function getMaskedQuoteIdByReversedQuoteId(string $reversedQuoteId): string
134+
private function getMaskedQuoteIdByReservedOrderId(string $reservedOrderId): string
135135
{
136136
$quote = $this->quoteFactory->create();
137-
$this->quoteResource->load($quote, $reversedQuoteId, 'reserved_order_id');
137+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
138138

139139
return $this->quoteIdToMaskedId->execute((int)$quote->getId());
140140
}

0 commit comments

Comments
 (0)