You are here

protected function MigrateCommentTest::setUp in Drupal 8

Same name in this branch
  1. 8 core/modules/comment/tests/src/Kernel/Migrate/d6/MigrateCommentTest.php \Drupal\Tests\comment\Kernel\Migrate\d6\MigrateCommentTest::setUp()
  2. 8 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentTest::setUp()
Same name and namespace in other branches
  1. 9 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentTest::setUp()
  2. 10 core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTest.php \Drupal\Tests\comment\Kernel\Migrate\d7\MigrateCommentTest::setUp()

Overrides MigrateDrupal7TestBase::setUp

File

core/modules/comment/tests/src/Kernel/Migrate/d7/MigrateCommentTest.php, line 38

Class

MigrateCommentTest
Tests the migration of comments from Drupal 7.

Namespace

Drupal\Tests\comment\Kernel\Migrate\d7

Code

protected function setUp() {
  parent::setUp();
  $this
    ->installEntitySchema('comment');
  $this
    ->installEntitySchema('taxonomy_term');
  $this
    ->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->migrateContent();
  $this
    ->executeMigrations([
    'language',
    'd7_node_type',
    'd7_language_content_settings',
    'd7_node_translation',
    'd7_comment_field',
    'd7_comment_field_instance',
    'd7_comment_entity_display',
    'd7_comment_entity_form_display',
    'd7_taxonomy_vocabulary',
    'd7_field',
    'd7_field_instance',
    'd7_comment',
    'd7_entity_translation_settings',
    'd7_comment_entity_translation',
  ]);
}