function UserPathTest::testUserLoginPage

Same name and namespace in other branches
  1. 9 core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest::testUserLoginPage()
  2. 10 core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest::testUserLoginPage()
  3. 11.x core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest::testUserLoginPage()

Tests if the login page is still available when using a wildcard path.

File

core/modules/views/tests/src/Functional/UserPathTest.php, line 32

Class

UserPathTest
Tests overriding user paths using wildcards.

Namespace

Drupal\Tests\views\Functional

Code

public function testUserLoginPage() {
    $this->drupalGet('user/login');
    $this->assertSession()
        ->statusCodeEquals(200);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.