You are here

protected function LoginSecurityUserBlockingTest::assertTextLastLoginMessage in Login Security 2.x

Assert Text of last login message.

1 call to LoginSecurityUserBlockingTest::assertTextLastLoginMessage()
LoginSecurityUserBlockingTest::testLoginMessage in tests/src/Functional/LoginSecurityUserBlockingTest.php
Test login message.

File

tests/src/Functional/LoginSecurityUserBlockingTest.php, line 75

Class

LoginSecurityUserBlockingTest
Test Login Security's user-blocking restrictions and default messages.

Namespace

Drupal\Tests\login_security\Functional

Code

protected function assertTextLastLoginMessage() {
  $this
    ->assertText('Your last login was', 'Last login message found.');
}