Skip to content

Commit 69237c5

Browse files
committed
AC-461: Add reCAPTCHA support to coupon code
* Static test fix in Integration test
1 parent 0acc76a commit 69237c5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ReCaptchaCheckoutSalesRule/Test/Integration/CouponApplyPostTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,12 @@ class CouponApplyPostTest extends AbstractController
2929
private const CUSTOMER_ID = 1;
3030

3131
/**
32-
* Customer session
3332
* @var Session
3433
*/
3534
private $customerSession;
3635

3736
/**
38-
* Checkout Session
39-
* @var Session
37+
* @var CheckoutSession
4038
*/
4139
private $checkoutSession;
4240

@@ -118,8 +116,7 @@ private function checkSuccessfulGetResponse(bool $shouldContainReCaptcha = false
118116
? $this->assertStringContainsString('field-recaptcha', $content)
119117
: $this->assertStringNotContainsString('field-recaptcha', $content);
120118

121-
$this->assertEmpty($this->getSessionMessages(
122-
\Magento\Framework\Message\MessageInterface::TYPE_ERROR));
119+
$this->assertEmpty($this->getSessionMessages(\Magento\Framework\Message\MessageInterface::TYPE_ERROR));
123120
}
124121

125122
/**

0 commit comments

Comments
 (0)