function UserPasswordResetTest::assertPasswordUserFlood
Makes assertions about a password reset triggering user flood control.
1 call to UserPasswordResetTest::assertPasswordUserFlood()
- UserPasswordResetTest::testUserResetPasswordUserFloodControl in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - Tests password reset flood control for one user.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php, line 396
Class
- UserPasswordResetTest
- Ensure that password reset methods work as expected.
Namespace
Drupal\Tests\user\FunctionalCode
public function assertPasswordUserFlood() {
$this->assertText(t('Too many password recovery requests for this account. It is temporarily blocked. Try again later or contact the site administrator.'), 'User password reset flood error message shown.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.