Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Fixed typo for exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
rogyar committed Aug 30, 2018
1 parent 1a077ac commit 9cb459e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value

if (!$this->cartMutationsAllowed->execute($cartId)) {
throw new GraphQlAuthorizationException(
__('Operations with selected card is not permitted for current user')
__('Operations with selected cart is not permitted for current user')
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function resolve(Field $field, $context, ResolveInfo $info, array $value

if (!$this->cartMutationsAllowed->execute((int) $cartId)) {
throw new GraphQlAuthorizationException(
__('Operations with selected card is not permitted for current user')
__('Operations with selected cart is not permitted for current user')
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function testGuestCustomerAttemptToChangeCustomerCart()
$this->quoteResource->save($this->quote);
$query = $this->prepareAddCouponRequestQuery($maskedQuoteId, $couponCode);

self::expectExceptionMessage('Operations with selected card is not permitted for current user');
self::expectExceptionMessage('Operations with selected cart is not permitted for current user');
$this->graphQlQuery($query);
}

Expand Down Expand Up @@ -178,7 +178,7 @@ public function testRemoveCouponFromCustomerCartByGuest()
$this->quoteResource->save($this->quote);
$query = $this->prepareRemoveCouponRequestQuery($maskedQuoteId);

self::expectExceptionMessage('Operations with selected card is not permitted for current user');
self::expectExceptionMessage('Operations with selected cart is not permitted for current user');
$this->graphQlQuery($query);
}

Expand Down

0 comments on commit 9cb459e

Please sign in to comment.