protected function MigrateNodeRevisionTest::setUp in Drupal 8
Same name in this branch
- 8 core/modules/node/tests/src/Kernel/Migrate/d6/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d6\MigrateNodeRevisionTest::setUp()
- 8 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeRevisionTest::setUp()
Same name and namespace in other branches
- 9 core/modules/node/tests/src/Kernel/Migrate/d7/MigrateNodeRevisionTest.php \Drupal\Tests\node\Kernel\Migrate\d7\MigrateNodeRevisionTest::setUp()
Overrides MigrateDrupal7TestBase::setUp
File
- core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeRevisionTest.php, line 47
Class
- MigrateNodeRevisionTest
- Tests node revision migrations.
Namespace
Drupal\Tests\node\Kernel\Migrate\d7Code
protected function setUp() {
parent::setUp();
$this
->fileMigrationSetup();
$this
->installEntitySchema('node');
$this
->installEntitySchema('comment');
$this
->installEntitySchema('taxonomy_term');
$this
->installSchema('comment', [
'comment_entity_statistics',
]);
$this
->installSchema('node', [
'node_access',
]);
$this
->migrateUsers();
$this
->migrateFields();
$this
->executeMigrations([
'language',
'd7_language_content_settings',
'd7_comment_field',
'd7_comment_field_instance',
'd7_node',
'd7_node_translation',
'd7_node_revision',
]);
$this->nodeStorage = $this->container
->get('entity_type.manager')
->getStorage('node');
}