Skip to content

Commit 2f4767d

Browse files
committed
Fixed error messages assertions in api-functional tests
1 parent 462601c commit 2f4767d

File tree

1 file changed

+2
-2
lines changed
  • dev/tests/api-functional/testsuite/Magento/GraphQl/Quote

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function testGuestCustomerAttemptToChangeCustomerCart()
121121
$this->quoteResource->save($this->quote);
122122
$query = $this->prepareAddCouponRequestQuery($maskedQuoteId, $couponCode);
123123

124-
self::expectExceptionMessage('The current user cannot perform operations on the selected cart');
124+
self::expectExceptionMessage('The current user cannot perform operations on cart "' . $maskedQuoteId . '"');
125125
$this->graphQlQuery($query);
126126
}
127127

@@ -178,7 +178,7 @@ public function testRemoveCouponFromCustomerCartByGuest()
178178
$this->quoteResource->save($this->quote);
179179
$query = $this->prepareRemoveCouponRequestQuery($maskedQuoteId);
180180

181-
self::expectExceptionMessage('The current user cannot perform operations on the selected cart');
181+
self::expectExceptionMessage('The current user cannot perform operations on cart "' . $maskedQuoteId . '"');
182182
$this->graphQlQuery($query);
183183
}
184184

0 commit comments

Comments
 (0)