public function ParagraphContentMigrationTest::testParagraphContentMigration

Tests the migration of a content with paragraphs and field collections.

@dataProvider providerParagraphContentMigration

File

paragraphs/tests/src/Kernel/migrate/ParagraphContentMigrationTest.php, line 75

Class

ParagraphContentMigrationTest
Test 'classic' Paragraph content migration.

Namespace

Drupal\Tests\paragraphs\Kernel\migrate

Code

public function testParagraphContentMigration($migration_to_run) {
  if ($migration_to_run) {
    $this
      ->executeMigration($migration_to_run);
  }
  $this
    ->assertNode8Paragraphs();
  $this
    ->assertNode9Paragraphs();
  $node_9 = Node::load(9);
  if ($node_9 instanceof TranslatableInterface && !empty($node_9
    ->getTranslationLanguages(FALSE))) {
    $this
      ->assertIcelandicNode9Paragraphs();
  }
}