protected function MigrateDrupal6TestBase::migrateContent in Drupal 9
Same name and namespace in other branches
- 8 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'.
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
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',
]);
}
}