function UserPasswordResetTest::assertPasswordUserFlood

Makes assertions about a password reset triggering user flood control.

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.