You are here

protected function MigrateForumTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateForumTest::setUp()

Overrides MigrateNodeTestBase::setUp

File

core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumTest.php, line 32

Class

MigrateForumTest
Tests forum migration from Drupal 6 to Drupal 8.

Namespace

Drupal\Tests\forum\Kernel\Migrate\d6

Code

protected function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('comment');
  $this
    ->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  $this
    ->installSchema('forum', [
    'forum',
    'forum_index',
  ]);
  $this
    ->installConfig([
    'comment',
    'forum',
  ]);
  $this
    ->migrateContent();
  $this
    ->migrateTaxonomy();
  $this
    ->executeMigrations([
    'd6_comment_type',
    'd6_comment_field',
    'd6_comment_field_instance',
    'd6_comment_entity_display',
    'd6_comment_entity_form_display',
    'd6_comment',
    'd6_term_node',
  ]);
}