You are here

public function ParagraphContentMigrationTest::setUp in Paragraphs 8

Overrides ParagraphsMigrationTestBase::setUp

File

tests/src/Kernel/migrate/ParagraphContentMigrationTest.php, line 46

Class

ParagraphContentMigrationTest
Test 'classic' Paragraph content migration.

Namespace

Drupal\Tests\paragraphs\Kernel\migrate

Code

public function setUp() : void {
  parent::setUp();
  $this
    ->installEntitySchema('file');
  $this
    ->installEntitySchema('node');
  $this
    ->installEntitySchema('paragraph');
  $this
    ->installEntitySchema('comment');
  $this
    ->installSchema('node', [
    'node_access',
  ]);
  $this
    ->installSchema('comment', [
    'comment_entity_statistics',
  ]);
  $this
    ->executeMigrationWithDependencies('d7_field_collection_revisions');
  $this
    ->executeMigrationWithDependencies('d7_paragraphs_revisions');
  $this
    ->executeMigrationWithDependencies('d7_node:paragraphs_test');
  $this
    ->prepareMigrations([
    'd7_node:article' => [],
    'd7_node:blog' => [],
    'd7_node:book' => [],
    'd7_node:forum' => [],
    'd7_node:test_content_type' => [],
  ]);
}