Version 1
[yaffs-website] / web / core / modules / path / tests / src / Functional / PathTestBase.php
diff --git a/web/core/modules/path/tests/src/Functional/PathTestBase.php b/web/core/modules/path/tests/src/Functional/PathTestBase.php
new file mode 100644 (file)
index 0000000..d4b8826
--- /dev/null
@@ -0,0 +1,29 @@
+<?php
+
+namespace Drupal\Tests\path\Functional;
+
+use Drupal\Tests\BrowserTestBase;
+
+/**
+ * Provides a base class for testing the Path module.
+ */
+abstract class PathTestBase extends BrowserTestBase {
+
+  /**
+   * Modules to enable.
+   *
+   * @var array
+   */
+  public static $modules = ['node', 'path'];
+
+  protected function setUp() {
+    parent::setUp();
+
+    // Create Basic page and Article node types.
+    if ($this->profile != 'standard') {
+      $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
+      $this->drupalCreateContentType(['type' => 'article', 'name' => 'Article']);
+    }
+  }
+
+}