class ParagraphsTypeMigrationTest

Test Migration of paragraph and field collection bundles.

@group paragraphs

Hierarchy

Expanded class hierarchy of ParagraphsTypeMigrationTest

File

paragraphs/tests/src/Kernel/migrate/ParagraphsTypeMigrationTest.php, line 10

Namespace

Drupal\Tests\paragraphs\Kernel\migrate
View source
class ParagraphsTypeMigrationTest extends ParagraphsMigrationTestBase {

  /**
   * Test if the paragraph/fc types were brought over as a paragraph.
   */
  public function testParagraphsTypeMigration() {
    $this
      ->executeMigration('d7_field_collection_type');
    $this
      ->executeMigration('d7_paragraphs_type');
    $this
      ->assertParagraphBundleExists('field_collection_test', 'Field collection test');
    $this
      ->assertParagraphBundleExists('paragraph_bundle_one', 'Paragraph Bundle One');
    $this
      ->assertParagraphBundleExists('paragraph_bundle_two', 'Paragraph Bundle Two');
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ParagraphsMigrationTestBase::$modules protected static property 2
ParagraphsMigrationTestBase::assertFieldInstanceExists protected function Test if the given field instance was created.
ParagraphsMigrationTestBase::assertParagraphBundleExists protected function Check to see if paragraph types were created.
ParagraphsMigrationTestBase::assertParagraphEntityFieldExists protected function Check if a field storage config entity was created for the paragraph.
ParagraphsMigrationTestBase::assertParagraphFieldExists protected function Check if a field storage entity was created for the paragraph fields.
ParagraphsMigrationTestBase::executeMigrationDependencies protected function Find and execute a migration's dependencies.
ParagraphsMigrationTestBase::executeMigrationWithDependencies protected function Execute a migration's dependencies followed by the migration.
ParagraphsMigrationTestBase::prepareMigration protected function
ParagraphsMigrationTestBase::setUp public function 1
ParagraphsTypeMigrationTest::testParagraphsTypeMigration public function Test if the paragraph/fc types were brought over as a paragraph.