You are here

protected function UserLoginHttpTest::resetFlood in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/UserLoginHttpTest.php \Drupal\Tests\user\Functional\UserLoginHttpTest::resetFlood()

Resets all flood entries.

1 call to UserLoginHttpTest::resetFlood()
UserLoginHttpTest::doTestLogin in core/modules/user/tests/src/Functional/UserLoginHttpTest.php
Do login testing for a given serialization format.

File

core/modules/user/tests/src/Functional/UserLoginHttpTest.php, line 280

Class

UserLoginHttpTest
Tests login and password reset via direct HTTP.

Namespace

Drupal\Tests\user\Functional

Code

protected function resetFlood() {
  $this->container
    ->get('database')
    ->delete(DatabaseBackend::TABLE_NAME)
    ->execute();
}