You are here

public function UserPasswordResetTest::assertPasswordUserFlood in Drupal 8

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\Functional

Code

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.');
}