function MigrateForumTest::setUp

Same name in other branches
  1. 9 core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateForumTest::setUp()
  2. 10 core/modules/forum/tests/src/Kernel/Migrate/d6/MigrateForumTest.php \Drupal\Tests\forum\Kernel\Migrate\d6\MigrateForumTest::setUp()
  3. 11.x 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() {
    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',
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.