You are here

protected function PersistentLoginTest::homepageHasLoginForm in Persistent Login 8

Returns whether or not the login form is displayed on the homepage.

Return value

bool Whether or not the login form is displayed.

1 call to PersistentLoginTest::homepageHasLoginForm()
PersistentLoginTest::testPersistentLogin in Tests/src/Functional/PersistentLoginTest.php
Tests whether a user can be persistently logged in.

File

Tests/src/Functional/PersistentLoginTest.php, line 126

Class

PersistentLoginTest
Tests the persistent login functionality.

Namespace

Drupal\Tests\persistent_login\Functional

Code

protected function homepageHasLoginForm() {
  $this
    ->drupalGet('<front>');
  return (bool) $this
    ->getSession()
    ->getPage()
    ->findButton('Log in');
}