public function SimpleReCaptchaFormManagerTest::dataFormIdProvider in Simple Google reCAPTCHA 8
Data to test form id is detected or not.
File
- tests/
src/ Unit/ SimpleReCaptchaFormManagerTest.php, line 32
Class
- SimpleReCaptchaFormManagerTest
- Class SimpleReCaptchaFormManagerTest.
Namespace
Drupal\Tests\simple_recaptcha\UnitCode
public function dataFormIdProvider() {
return [
[
'user_login_form',
[
'user_login_form',
'user_pass',
'user_register_form',
],
TRUE,
],
[
'user_pass',
[
'user_login_form',
'user_pass',
'user_register_form',
],
TRUE,
],
[
'user_register_form',
[
'user_login_form',
'user_pass',
'user_register_form',
],
TRUE,
],
[
'user_login_form',
[
'user_login*',
'user_register*',
],
TRUE,
],
[
'user_pass',
[
'user_login*',
'user_register*',
],
FALSE,
],
[
'user_register_form',
[
'user_login*',
'user_register*',
],
TRUE,
],
[
'user_login_form',
[
'user_*',
],
TRUE,
],
[
'user_pass',
[
'user_*',
'user_*',
],
TRUE,
],
[
'user_register_form',
[
'user_*',
'user_*',
],
TRUE,
],
[
'user_login_form',
[
'user_*_form',
],
TRUE,
],
[
'user_pass',
[
'user_*_form',
],
FALSE,
],
[
'user_register_form',
[
'user_*_form',
],
TRUE,
],
[
'user_login_form',
[
'*user*',
],
TRUE,
],
[
'user_pass',
[
'*user*',
],
TRUE,
],
[
'user_register_form',
[
'*user*',
],
TRUE,
],
[
'user_login_form',
[
'*_user*',
],
FALSE,
],
[
'user_pass',
[
'*_user*',
],
FALSE,
],
[
'user_register_form',
[
'*_user*',
],
FALSE,
],
[
'user_login_form',
[
'user_other*',
'user_else*',
],
FALSE,
],
[
'user_pass',
[
'user_other*',
'user_else*',
],
FALSE,
],
[
'user_register_form',
[
'user_other*',
'user_else*',
],
FALSE,
],
];
}