You are here

protected function LoginSecuritySoftBlockTest::assertSoftBlocked in Login Security 8

Checks whether the request is Soft Blocked.

1 call to LoginSecuritySoftBlockTest::assertSoftBlocked()
LoginSecuritySoftBlockTest::testSoftBlocking in src/Tests/LoginSecuritySoftBlockTest.php
Test soft blocking.

File

src/Tests/LoginSecuritySoftBlockTest.php, line 31

Class

LoginSecuritySoftBlockTest
Test Login Security's soft blocking restrictions.

Namespace

Drupal\login_security\Tests

Code

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