Skip to content

Commit 643e874

Browse files
committed
security-package/issues/105: Cover ReCaptchaContact module with integration test
1 parent 973a710 commit 643e874

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

ReCaptchaContact/Test/Integration/ContactFormTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@ protected function setUp()
6161
* @magentoConfigFixture base_website customer/captcha/enable 0
6262
* @magentoConfigFixture base_website recaptcha_frontend/type_invisible/public_key test_public_key
6363
* @magentoConfigFixture base_website recaptcha_frontend/type_invisible/private_key test_private_key
64-
*
65-
* @magentoConfigFixture default_store recaptcha_frontend/type_for/contact invisible Needed for ifconfig in layout
6664
*/
6765
public function testGetRequestIfReCaptchaIsDisabled()
6866
{
@@ -75,7 +73,8 @@ public function testGetRequestIfReCaptchaIsDisabled()
7573
* @magentoConfigFixture base_website customer/captcha/enable 0
7674
* @magentoConfigFixture base_website recaptcha_frontend/type_for/contact invisible
7775
*
78-
* @magentoConfigFixture default_store recaptcha_frontend/type_for/contact invisible Needed for ifconfig in layout
76+
* It's needed for proper work of "ifconfig" in layout during tests running
77+
* @magentoConfigFixture default_store recaptcha_frontend/type_for/contact invisible
7978
*/
8079
public function testGetRequestIfReCaptchaKeysAreNotConfigured()
8180
{
@@ -90,7 +89,8 @@ public function testGetRequestIfReCaptchaKeysAreNotConfigured()
9089
* @magentoConfigFixture base_website recaptcha_frontend/type_invisible/private_key test_private_key
9190
* @magentoConfigFixture base_website recaptcha_frontend/type_for/contact invisible
9291
*
93-
* @magentoConfigFixture default_store recaptcha_frontend/type_for/contact invisible Needed for ifconfig in layout
92+
* It's needed for proper work of "ifconfig" in layout during tests running
93+
* @magentoConfigFixture default_store recaptcha_frontend/type_for/contact invisible
9494
*/
9595
public function testGetRequestIfReCaptchaIsEnabled()
9696
{

ReCaptchaUser/Test/Integration/ForgotPasswordFormTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ public function testGetRequestIfReCaptchaIsDisabled()
7676
/**
7777
* @magentoAdminConfigFixture admin/captcha/enable 0
7878
* @magentoAdminConfigFixture recaptcha_backend/type_for/user_forgot_password invisible
79+
*
80+
* It's needed for proper work of "ifconfig" in layout during tests running
81+
* @magentoConfigFixture default_store recaptcha_backend/type_for/user_forgot_password invisible
7982
*/
8083
public function testGetRequestIfReCaptchaKeysAreNotConfigured()
8184
{
@@ -87,6 +90,9 @@ public function testGetRequestIfReCaptchaKeysAreNotConfigured()
8790
* @magentoAdminConfigFixture recaptcha_backend/type_invisible/public_key test_public_key
8891
* @magentoAdminConfigFixture recaptcha_backend/type_invisible/private_key test_private_key
8992
* @magentoAdminConfigFixture recaptcha_backend/type_for/user_forgot_password invisible
93+
*
94+
* It's needed for proper work of "ifconfig" in layout during tests running
95+
* @magentoConfigFixture default_store recaptcha_backend/type_for/user_forgot_password invisible
9096
*/
9197
public function testGetRequestIfReCaptchaIsEnabled()
9298
{

ReCaptchaUser/Test/Integration/LoginFormTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ public function testGetRequestIfReCaptchaIsDisabled()
8181
* @magentoAdminConfigFixture admin/security/use_form_key 0
8282
* @magentoAdminConfigFixture admin/captcha/enable 0
8383
* @magentoAdminConfigFixture recaptcha_backend/type_for/user_login invisible
84+
*
85+
* It's needed for proper work of "ifconfig" in layout during tests running
86+
* @magentoConfigFixture default_store recaptcha_backend/type_for/user_login invisible
8487
*/
8588
public function testGetRequestIfReCaptchaKeysAreNotConfigured()
8689
{
@@ -93,6 +96,9 @@ public function testGetRequestIfReCaptchaKeysAreNotConfigured()
9396
* @magentoAdminConfigFixture recaptcha_backend/type_invisible/public_key test_public_key
9497
* @magentoAdminConfigFixture recaptcha_backend/type_invisible/private_key test_private_key
9598
* @magentoAdminConfigFixture recaptcha_backend/type_for/user_login invisible
99+
*
100+
* It's needed for proper work of "ifconfig" in layout during tests running
101+
* @magentoConfigFixture default_store recaptcha_backend/type_for/user_login invisible
96102
*/
97103
public function testGetRequestIfReCaptchaIsEnabled()
98104
{

0 commit comments

Comments
 (0)