Skip to content

Commit 5b1789e

Browse files
committed
magento/graphql-ce#559: Fix misspelling in GetQuoteShippingAddressIdByReservedQuoteId
1 parent 41d6d26 commit 5b1789e

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetBillingAddressOnCartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -568,16 +568,16 @@ private function getHeaderMap(string $username = '[email protected]', string
568568
}
569569

570570
/**
571-
* @param string $reversedOrderId
571+
* @param string $reservedOrderId
572572
* @param int $customerId
573573
* @return string
574574
*/
575575
private function assignQuoteToCustomer(
576-
string $reversedOrderId = 'test_order_with_simple_product_without_address',
576+
string $reservedOrderId = 'test_order_with_simple_product_without_address',
577577
int $customerId = 1
578578
): string {
579579
$quote = $this->quoteFactory->create();
580-
$this->quoteResource->load($quote, $reversedOrderId, 'reserved_order_id');
580+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
581581
$quote->setCustomerId($customerId);
582582
$this->quoteResource->save($quote);
583583
return $this->quoteIdToMaskedId->execute((int)$quote->getId());

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingAddressOnCartTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,16 +541,16 @@ private function getHeaderMap(string $username = '[email protected]', string
541541
}
542542

543543
/**
544-
* @param string $reversedOrderId
544+
* @param string $reservedOrderId
545545
* @param int $customerId
546546
* @return string
547547
*/
548548
private function assignQuoteToCustomer(
549-
string $reversedOrderId = 'test_order_with_simple_product_without_address',
549+
string $reservedOrderId = 'test_order_with_simple_product_without_address',
550550
int $customerId = 1
551551
): string {
552552
$quote = $this->quoteFactory->create();
553-
$this->quoteResource->load($quote, $reversedOrderId, 'reserved_order_id');
553+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
554554
$quote->setCustomerId($customerId);
555555
$this->quoteResource->save($quote);
556556
return $this->quoteIdToMaskedId->execute((int)$quote->getId());

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/SetShippingMethodsOnCartTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,30 +162,30 @@ private function prepareMutationQuery(
162162
}
163163

164164
/**
165-
* @param string $reversedOrderId
165+
* @param string $reservedOrderId
166166
* @return string
167167
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
168168
*/
169-
private function getMaskedQuoteIdByReservedOrderId(string $reversedOrderId): string
169+
private function getMaskedQuoteIdByReservedOrderId(string $reservedOrderId): string
170170
{
171171
$quote = $this->quoteFactory->create();
172-
$this->quoteResource->load($quote, $reversedOrderId, 'reserved_order_id');
172+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
173173

174174
return $this->quoteIdToMaskedId->execute((int)$quote->getId());
175175
}
176176

177177
/**
178-
* @param string $reversedOrderId
178+
* @param string $reservedOrderId
179179
* @param int $customerId
180180
* @return string
181181
* @SuppressWarnings(PHPMD.UnusedPrivateMethod)
182182
*/
183183
private function assignQuoteToCustomer(
184-
string $reversedOrderId,
184+
string $reservedOrderId,
185185
int $customerId
186186
): string {
187187
$quote = $this->quoteFactory->create();
188-
$this->quoteResource->load($quote, $reversedOrderId, 'reserved_order_id');
188+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
189189
$quote->setCustomerId($customerId);
190190
$this->quoteResource->save($quote);
191191
return $this->quoteIdToMaskedId->execute((int)$quote->getId());

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@ public function __construct(
5050
/**
5151
* Get masked quote id by reserved order id
5252
*
53-
* @param string $reversedOrderId
53+
* @param string $reservedOrderId
5454
* @return string
5555
* @throws NoSuchEntityException
5656
*/
57-
public function execute(string $reversedOrderId): string
57+
public function execute(string $reservedOrderId): string
5858
{
5959
$quote = $this->quoteFactory->create();
60-
$this->quoteResource->load($quote, $reversedOrderId, 'reserved_order_id');
60+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
6161

6262
return $this->quoteIdToMaskedId->execute((int)$quote->getId());
6363
}

0 commit comments

Comments
 (0)