@@ -49,7 +49,7 @@ protected function setUp()
49
49
*/
50
50
public function testGetPaymentMethodsFromGuestCart ()
51
51
{
52
- $ maskedQuoteId = $ this ->getMaskedQuoteIdByReversedQuoteId ('test_order_with_simple_product_without_address ' );
52
+ $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ('test_order_with_simple_product_without_address ' );
53
53
$ query = $ this ->getCartAvailablePaymentMethodsQuery ($ maskedQuoteId );
54
54
$ response = $ this ->graphQlQuery ($ query );
55
55
@@ -75,7 +75,7 @@ public function testGetPaymentMethodsFromGuestCart()
75
75
*/
76
76
public function testGetPaymentMethodsFromAnotherCustomerCart ()
77
77
{
78
- $ maskedQuoteId = $ this ->getMaskedQuoteIdByReversedQuoteId ('test_order_1 ' );
78
+ $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ('test_order_1 ' );
79
79
$ query = $ this ->getCartAvailablePaymentMethodsQuery ($ maskedQuoteId );
80
80
81
81
$ this ->expectExceptionMessage (
@@ -90,7 +90,7 @@ public function testGetPaymentMethodsFromAnotherCustomerCart()
90
90
*/
91
91
public function testGetPaymentMethodsIfPaymentsAreNotSet ()
92
92
{
93
- $ maskedQuoteId = $ this ->getMaskedQuoteIdByReversedQuoteId ('test_order_with_simple_product_without_address ' );
93
+ $ maskedQuoteId = $ this ->getMaskedQuoteIdByReservedOrderId ('test_order_with_simple_product_without_address ' );
94
94
$ query = $ this ->getCartAvailablePaymentMethodsQuery ($ maskedQuoteId );
95
95
$ response = $ this ->graphQlQuery ($ query );
96
96
@@ -128,13 +128,13 @@ private function getCartAvailablePaymentMethodsQuery(
128
128
}
129
129
130
130
/**
131
- * @param string $reversedQuoteId
131
+ * @param string $reservedOrderId
132
132
* @return string
133
133
*/
134
- private function getMaskedQuoteIdByReversedQuoteId (string $ reversedQuoteId ): string
134
+ private function getMaskedQuoteIdByReservedOrderId (string $ reservedOrderId ): string
135
135
{
136
136
$ quote = $ this ->quoteFactory ->create ();
137
- $ this ->quoteResource ->load ($ quote , $ reversedQuoteId , 'reserved_order_id ' );
137
+ $ this ->quoteResource ->load ($ quote , $ reservedOrderId , 'reserved_order_id ' );
138
138
139
139
return $ this ->quoteIdToMaskedId ->execute ((int )$ quote ->getId ());
140
140
}
0 commit comments