function MigrateDrupal6TestBase::migrateContent
Same name in other branches
- 9 core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateContent()
- 8.9.x core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6TestBase.php \Drupal\Tests\migrate_drupal\Kernel\d6\MigrateDrupal6TestBase::migrateContent()
- 10 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'.
7 calls to MigrateDrupal6TestBase::migrateContent()
- 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 - MigrateTermNodeTest::setUp in core/
modules/ taxonomy/ tests/ src/ Kernel/ Migrate/ d6/ MigrateTermNodeTest.php
File
-
core/
modules/ migrate_drupal/ tests/ src/ Kernel/ d6/ MigrateDrupal6TestBase.php, line 104
Class
- MigrateDrupal6TestBase
- Base class for Drupal 6 migration tests.
Namespace
Drupal\Tests\migrate_drupal\Kernel\d6Code
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.