view core/modules/views/tests/src/Functional/UserPathTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents
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);
  }

}