You are here

public function MigrateUiParagraphsTest::testParagraphsMigrate in Paragraphs 8

Tests the result of the paragraphs migration.

@dataProvider providerParagraphsMigrate

File

tests/src/Functional/Migrate/MigrateUiParagraphsTest.php, line 23

Class

MigrateUiParagraphsTest
Tests the migration of paragraph entities.

Namespace

Drupal\Tests\paragraphs\Functional\Migrate

Code

public function testParagraphsMigrate($node_migrate_type_classic) {

  // Drupal 8.8.x only has 'classic' node migrations.
  // @see https://www.drupal.org/node/3105503
  if (!$node_migrate_type_classic && version_compare(\Drupal::VERSION, '8.9', '<')) {
    $this
      ->pass("Drupal 8.8.x has only the 'classic' node migration.");
    return;
  }
  $this
    ->setClassicNodeMigration($node_migrate_type_classic);
  $this
    ->assertMigrateUpgradeViaUi();
  $this
    ->assertParagraphsMigrationResults();
  $this
    ->assertNode8Paragraphs();
  $this
    ->assertNode9Paragraphs();
  $this
    ->assertIcelandicNode9Paragraphs();
}