function UserPasswordResetTest::assertNoPasswordUserFlood
Makes assertions about a password reset not triggering user flood control.
2 calls to UserPasswordResetTest::assertNoPasswordUserFlood()
- UserPasswordResetTest::testUserResetPasswordUserFloodControl in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - Tests password reset flood control for one user.
- UserPasswordResetTest::testUserResetPasswordUserFloodControlIsCleared in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - Tests user password reset flood control is cleared on successful reset.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php, line 403
Class
- UserPasswordResetTest
- Ensure that password reset methods work as expected.
Namespace
Drupal\Tests\user\FunctionalCode
public function assertNoPasswordUserFlood() {
$this->assertNoText(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 not shown.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.