public function UserPasswordResetTest::assertPasswordIpFlood in Drupal 8
Same name and namespace in other branches
- 9 core/modules/user/tests/src/Functional/UserPasswordResetTest.php \Drupal\Tests\user\Functional\UserPasswordResetTest::assertPasswordIpFlood()
Makes assertions about a password reset triggering IP flood control.
1 call to UserPasswordResetTest::assertPasswordIpFlood()
- UserPasswordResetTest::testUserResetPasswordIpFloodControl in core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php - Tests password reset flood control for one IP.
File
- core/
modules/ user/ tests/ src/ Functional/ UserPasswordResetTest.php, line 410
Class
- UserPasswordResetTest
- Ensure that password reset methods work as expected.
Namespace
Drupal\Tests\user\FunctionalCode
public function assertPasswordIpFlood() {
$this
->assertText(t('Too many password recovery requests from your IP address. It is temporarily blocked. Try again later or contact the site administrator.'), 'IP password reset flood error message shown.');
}