Skip to content

Commit a8450f4

Browse files
The instead of This in error message
1 parent 1f87785 commit a8450f4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/GetCartForUser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function execute(string $cartHash, ?int $customerId, int $storeId): Quote
7272
}
7373

7474
if (false === (bool)$cart->getIsActive()) {
75-
throw new GraphQlNoSuchEntityException(__('This cart isn\'t active.'));
75+
throw new GraphQlNoSuchEntityException(__('The cart isn\'t active.'));
7676
}
7777

7878
if ((int)$cart->getStoreId() !== $storeId) {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function testGetNonExistentCart()
162162
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/make_cart_inactive.php
163163
*
164164
* @expectedException Exception
165-
* @expectedExceptionMessage This cart isn't active.
165+
* @expectedExceptionMessage The cart isn't active.
166166
*/
167167
public function testGetInactiveCart()
168168
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function testMergeGuestWithCustomerCart()
108108
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
109109
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
110110
* @expectedException \Exception
111-
* @expectedExceptionMessage This cart isn't active.
111+
* @expectedExceptionMessage The cart isn't active.
112112
*/
113113
public function testGuestCartExpiryAfterMerge()
114114
{

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function testGetNonExistentCart()
119119
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/make_cart_inactive.php
120120
*
121121
* @expectedException Exception
122-
* @expectedExceptionMessage This cart isn't active.
122+
* @expectedExceptionMessage The cart isn't active.
123123
*/
124124
public function testGetInactiveCart()
125125
{

0 commit comments

Comments
 (0)