Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / views / tests / src / Functional / UserPathTest.php
diff --git a/web/core/modules/views/tests/src/Functional/UserPathTest.php b/web/core/modules/views/tests/src/Functional/UserPathTest.php
new file mode 100644 (file)
index 0000000..27a0f27
--- /dev/null
@@ -0,0 +1,32 @@
+<?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);
+  }
+
+}