protected function LoginSecuritySoftBlockTest::assertSoftBlocked in Login Security 2.x
Checks whether the request is Soft Blocked.
1 call to LoginSecuritySoftBlockTest::assertSoftBlocked()
- LoginSecuritySoftBlockTest::testSoftBlocking in tests/
src/ Functional/ LoginSecuritySoftBlockTest.php - Test soft blocking.
File
- tests/
src/ Functional/ LoginSecuritySoftBlockTest.php, line 35
Class
- LoginSecuritySoftBlockTest
- Test Login Security's soft blocking restrictions.
Namespace
Drupal\Tests\login_security\FunctionalCode
protected function assertSoftBlocked($account) {
$this
->drupalLoginLite($account);
$this
->assertText('This host is not allowed to log in', 'Soft-block message displays.');
$this
->assertFieldByName('form_id', 'user_login_form', 'Login form found.');
}