Skip to content

Commit da139fc

Browse files
committed
AC-461: Add reCAPTCHA support to coupon code
* Fixed webApi-test
1 parent ad8fc18 commit da139fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ReCaptchaCheckoutSalesRule/Test/Api/CouponApplyFormRecaptchaTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function testRequired(): void
5454
{
5555
$this->expectException(\Throwable::class);
5656
$this->expectExceptionCode(400);
57-
$this->expectExceptionMessage('{"message":"ReCaptcha validation failed, please try again","trace":null}');
57+
$this->expectExceptionMessage('{"message":"ReCaptcha validation failed, please try again"}');
5858

5959
// get customer ID token
6060
/** @var \Magento\Integration\Api\CustomerTokenServiceInterface $customerTokenService */
@@ -94,7 +94,7 @@ public function testGuestCartTest(): void
9494
{
9595
$this->expectException(\Throwable::class);
9696
$this->expectExceptionCode(400);
97-
$this->expectExceptionMessage('{"message":"ReCaptcha validation failed, please try again","trace":null}');
97+
$this->expectExceptionMessage('{"message":"ReCaptcha validation failed, please try again"}');
9898

9999
/** @var Quote $quote */
100100
$quote = $this->quoteFactory->create();

0 commit comments

Comments
 (0)