function UserPathTest::testUserLoginPage

Same name in other branches
  1. 9 core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest::testUserLoginPage()
  2. 8.9.x core/modules/views/tests/src/Functional/UserPathTest.php \Drupal\Tests\views\Functional\UserPathTest::testUserLoginPage()
  3. 10 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 34

Class

UserPathTest
Tests overriding user paths using wildcards.

Namespace

Drupal\Tests\views\Functional

Code

public function testUserLoginPage() : void {
    $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.