Version 1
[yaffs-website] / web / core / modules / migrate_drupal / tests / src / Kernel / d7 / MigrateDrupal7TestBase.php
diff --git a/web/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php b/web/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7TestBase.php
new file mode 100644 (file)
index 0000000..3afa82d
--- /dev/null
@@ -0,0 +1,27 @@
+<?php
+
+namespace Drupal\Tests\migrate_drupal\Kernel\d7;
+
+use Drupal\Tests\migrate_drupal\Kernel\MigrateDrupalTestBase;
+
+/**
+ * Base class for Drupal 7 migration tests.
+ */
+abstract class MigrateDrupal7TestBase extends MigrateDrupalTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    $this->loadFixture($this->getFixtureFilePath());
+  }
+
+  /**
+   * Gets the path to the fixture file.
+   */
+  protected function getFixtureFilePath() {
+    return __DIR__ . '/../../../fixtures/drupal7.php';
+  }
+
+}