You are here

UserPathTest.php in Drupal 9

Same filename and directory in other branches
  1. 8 core/modules/views/tests/src/Functional/UserPathTest.php

File

core/modules/views/tests/src/Functional/UserPathTest.php
View source
<?php

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() {
    $this
      ->drupalGet('user/login');
    $this
      ->assertSession()
      ->statusCodeEquals(200);
  }

}

Classes

Namesort descending Description
UserPathTest Tests overriding user paths using wildcards.