function MigrateDrupal6TestBase::migrateContent

Same name in other branches
  1. 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateContent()
  2. 10 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateContent()
  3. 11.x core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateContent()

Executes all content migrations.

Parameters

array $include: Extra things to include as part of the migrations. Values may be 'revisions' or 'translations'.

8 calls to MigrateDrupal6TestBase::migrateContent()
MigrateBookTest::setUp in core/modules/book/tests/src/Kernel/Migrate/d6/MigrateBookTest.php
MigrateCommentTest::setUp in core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTest.php
MigrateForumTest::setUp in core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumTest.php
MigrateMenuLinkTranslationTest::setUp in core/modules/menu_link_content/tests/src/Kernel/Migrate/d6/MigrateMenuLinkTranslationTest.php
MigrateTermNodeRevisionTest::setUp in core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeRevisionTest.php

... See full list

File

core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php, line 102

Class

MigrateDrupal6TestBase
Base class for Drupal 6 migration tests.

Namespace

Drupal\Tests\migrate_drupal\Kernel\d6

Code

protected function migrateContent(array $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 (in_array('translations', $include)) {
        $this->executeMigrations([
            'd6_node_translation',
        ]);
    }
    if (in_array('revisions', $include)) {
        $this->executeMigrations([
            'd6_node_revision',
        ]);
    }
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.