public function ConsecutiveCharactersTest::passwordsDataProvider in Password Policy 8.3
Provides data for the testConsecutiveCharacters method.
File
- password_policy_consecutive/
tests/ src/ Unit/ ConsecutiveCharactersTest.php, line 34
Class
- ConsecutiveCharactersTest
- Tests the consecutive constraint.
Namespace
Drupal\Tests\password_policy_consecutive\UnitCode
public function passwordsDataProvider() {
return [
// Passing conditions.
[
2,
'PasSword',
TRUE,
],
[
3,
'Password',
TRUE,
],
[
4,
'PasSword',
TRUE,
],
[
5,
'PasSsSworD',
TRUE,
],
// Failing conditions.
[
2,
'Password',
FALSE,
],
[
3,
'Passsword',
FALSE,
],
[
4,
'paSSWOOOORD',
FALSE,
],
[
5,
'Password1233333',
FALSE,
],
];
}