Skip to content

Commit d9fe7a3

Browse files
security-package/issues/170: Typo fix.
1 parent 4963ee7 commit d9fe7a3

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

ReCaptchaContact/Test/Integration/ContactFormTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function testPostRequestIfReCaptchaParameterIsMissed()
150150
$this->setConfig(true, 'test_public_key', 'test_private_key');
151151

152152
$this->expectException(InputException::class);
153-
$this->expectExceptionMessage('reCapctha is required.');
153+
$this->expectExceptionMessage('reCAPTCHA is required.');
154154

155155
$this->checkPostResponse(false);
156156
}

ReCaptchaCustomer/Test/Integration/CreateCustomerFormTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public function testPostRequestIfReCaptchaParameterIsMissed()
174174
$this->setConfig(true, 'test_public_key', 'test_private_key');
175175

176176
$this->expectException(InputException::class);
177-
$this->expectExceptionMessage('reCapctha is required.');
177+
$this->expectExceptionMessage('reCAPTCHA is required.');
178178

179179
$this->checkPostResponse(false);
180180
}

ReCaptchaCustomer/Test/Integration/ForgotPasswordFormTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ public function testPostRequestIfReCaptchaParameterIsMissed()
167167
$this->setConfig(true, 'test_public_key', 'test_private_key');
168168

169169
$this->expectException(InputException::class);
170-
$this->expectExceptionMessage('reCapctha is required.');
170+
$this->expectExceptionMessage('reCAPTCHA is required.');
171171

172172
$this->checkPostResponse(false);
173173
}

ReCaptchaCustomer/Test/Integration/LoginFromTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function testPostRequestIfReCaptchaParameterIsMissed()
166166
$this->setConfig(true, 'test_public_key', 'test_private_key');
167167

168168
$this->expectException(InputException::class);
169-
$this->expectExceptionMessage('reCapctha is required.');
169+
$this->expectExceptionMessage('reCAPTCHA is required.');
170170

171171
$this->checkPostResponse(false);
172172
}

ReCaptchaUi/Model/CaptchaResponseResolver.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function resolve(RequestInterface $request): string
2222
{
2323
$reCaptchaParam = $request->getParam(self::PARAM_RECAPTCHA);
2424
if (empty($reCaptchaParam)) {
25-
throw new InputException(__('reCapctha is required.'));
25+
throw new InputException(__('reCAPTCHA is required.'));
2626
}
2727
return $reCaptchaParam;
2828
}

ReCaptchaUser/Test/Integration/ForgotPasswordFormTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testPostRequestWithSuccessfulReCaptchaValidation()
142142
* @magentoAdminConfigFixture recaptcha_backend/type_invisible/private_key test_private_key
143143
* @magentoAdminConfigFixture recaptcha_backend/type_for/user_forgot_password invisible
144144
* @expectedException \Magento\Framework\Exception\InputException
145-
* @expectedExceptionMessage reCapctha is required.
145+
* @expectedExceptionMessage reCAPTCHA is required.
146146
*/
147147
public function testPostRequestIfReCaptchaParameterIsMissed()
148148
{

ReCaptchaUser/Test/Integration/LoginFormTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ public function testPostRequestIfReCaptchaParameterIsMissed()
169169
// Location header is different than in the successful case
170170
$this->assertRedirect(self::equalTo($this->backendUrl->getUrl('admin')));
171171
$this->assertSessionMessages(
172-
self::equalTo(['reCapctha is required.']),
172+
self::equalTo(['reCAPTCHA is required.']),
173173
MessageInterface::TYPE_ERROR
174174
);
175175
self::assertFalse($this->auth->isLoggedIn());

0 commit comments

Comments
 (0)