Skip to content

Commit

Permalink
The instead of This in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
engcom-Charlie committed Mar 10, 2020
1 parent 1f87785 commit a8450f4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function execute(string $cartHash, ?int $customerId, int $storeId): Quote
}

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

if ((int)$cart->getStoreId() !== $storeId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public function testGetNonExistentCart()
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/make_cart_inactive.php
*
* @expectedException Exception
* @expectedExceptionMessage This cart isn't active.
* @expectedExceptionMessage The cart isn't active.
*/
public function testGetInactiveCart()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function testMergeGuestWithCustomerCart()
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/customer/create_empty_cart.php
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/add_simple_product.php
* @expectedException \Exception
* @expectedExceptionMessage This cart isn't active.
* @expectedExceptionMessage The cart isn't active.
*/
public function testGuestCartExpiryAfterMerge()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public function testGetNonExistentCart()
* @magentoApiDataFixture Magento/GraphQl/Quote/_files/make_cart_inactive.php
*
* @expectedException Exception
* @expectedExceptionMessage This cart isn't active.
* @expectedExceptionMessage The cart isn't active.
*/
public function testGetInactiveCart()
{
Expand Down

0 comments on commit a8450f4

Please sign in to comment.