view core/modules/views/tests/src/Functional/UserPathTest.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
line wrap: on
line source
<?php

namespace Drupal\Tests\views\Functional;

/**
 * Tests overriding user paths using wildcards.
 *
 * @group views
 */
class UserPathTest extends ViewTestBase {

  /**
   * {@inheritdoc}
   */
  public static $modules = ['views', 'user'];

  /**
   * 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);
  }

}