UserPathTest.php

Same filename in other branches
  1. 9 core/modules/views/tests/src/Functional/UserPathTest.php
  2. 8.9.x core/modules/views/tests/src/Functional/UserPathTest.php
  3. 10 core/modules/views/tests/src/Functional/UserPathTest.php

Namespace

Drupal\Tests\views\Functional

File

core/modules/views/tests/src/Functional/UserPathTest.php

View source
<?php

declare (strict_types=1);
namespace Drupal\Tests\views\Functional;


/**
 * Tests overriding user paths using wildcards.
 *
 * @group views
 */
class UserPathTest extends ViewTestBase {
    
    /**
     * {@inheritdoc}
     */
    protected static $modules = [
        'views',
        'user',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected $defaultTheme = 'stark';
    
    /**
     * The test views to use.
     *
     * @var array
     */
    public static $testViews = [
        'test_user_path',
    ];
    
    /**
     * Tests if the login page is still available when using a wildcard path.
     */
    public function testUserLoginPage() : void {
        $this->drupalGet('user/login');
        $this->assertSession()
            ->statusCodeEquals(200);
    }

}

Classes

Title Deprecated Summary
UserPathTest Tests overriding user paths using wildcards.

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