Skip to content

Commit d2e21e6

Browse files
ENGCOM-4646: magento/graphql-ce#559: Fix misspelling in GetQuoteShippingAddressIdByReservedQuoteId #560
- Merge Pull Request magento/graphql-ce#560 from magento/graphql-ce:559-fix-misspeling-in-GetQuoteShippingAddressIdByReservedQuoteId - Merged commits: 1. 41d6d26 2. 5b1789e 3. 67c7790
2 parents 4a28abb + 67c7790 commit d2e21e6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
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/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
}

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ public function __construct(
4040
/**
4141
* Get quote shipping address id by reserved order id
4242
*
43-
* @param string $reversedOrderId
43+
* @param string $reservedOrderId
4444
* @return int
4545
*/
46-
public function execute(string $reversedOrderId): int
46+
public function execute(string $reservedOrderId): int
4747
{
4848
$quote = $this->quoteFactory->create();
49-
$this->quoteResource->load($quote, $reversedOrderId, 'reserved_order_id');
49+
$this->quoteResource->load($quote, $reservedOrderId, 'reserved_order_id');
5050

5151
return (int)$quote->getShippingAddress()->getId();
5252
}

0 commit comments

Comments
 (0)