function UserConfigValidationTest::providerTestUserSettings
Data provider for testUserSettings().
Return value
array
File
-
core/
modules/ user/ tests/ src/ Kernel/ UserConfigValidationTest.php, line 34
Class
- UserConfigValidationTest
- Tests validating user modules' configuration.
Namespace
Drupal\Tests\user\KernelCode
public static function providerTestUserSettings() : array {
return [
"Invalid register" => [
'register',
'somebody',
'The value you selected is not a valid choice.',
],
"Invalid cancel_method" => [
'cancel_method',
'somebody',
'The value you selected is not a valid choice.',
],
"Invalid password_reset_timeout" => [
'password_reset_timeout',
'0',
'This value should be <em class="placeholder">1</em> or more.',
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.