summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php')
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php15
1 files changed, 11 insertions, 4 deletions
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php b/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php
index 72a8095..3a9467e 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php
@@ -89,17 +89,24 @@ abstract class MigrateDrupal6TestBase extends MigrateDrupalTestBase {
/**
* Executes all content migrations.
*
- * @param bool $include_revisions
- * If TRUE, migrates node revisions.
+ * @param array $include
+ * Extra things to include as part of the migrations. Values may be
+ * 'revisions' or 'translations'.
*/
- protected function migrateContent($include_revisions = FALSE) {
+ protected function migrateContent($include = []) {
+ if (in_array('translations', $include)) {
+ $this->executeMigrations(['language']);
+ }
$this->migrateUsers(FALSE);
$this->migrateFields();
$this->installEntitySchema('node');
$this->executeMigrations(['d6_node_settings', 'd6_node']);
- if ($include_revisions) {
+ if (in_array('translations', $include)) {
+ $this->executeMigrations(['translations']);
+ }
+ if (in_array('revisions', $include)) {
$this->executeMigrations(['d6_node_revision']);
}
}