function MigrateDrupal6TestBase::migrateContent
Same name and namespace in other branches
- 11.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()
- 8.9.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'.
1 call to MigrateDrupal6TestBase::migrateContent()
- MigrateUploadTest::setUp in core/
modules/ file/ tests/ src/ Kernel/ Migrate/ d6/ MigrateUploadTest.php
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\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.