public function ParagraphsFieldMigrationTest::testParagraphsFieldMigration

Test that the paragraph and field collection field storage was migrated.

File

paragraphs/tests/src/Kernel/migrate/ParagraphsFieldMigrationTest.php, line 42

Class

ParagraphsFieldMigrationTest
Test the migration of paragraphs and field collection fields.

Namespace

Drupal\Tests\paragraphs\Kernel\migrate

Code

public function testParagraphsFieldMigration() {
  $this
    ->executeMigration('d7_field');
  $this
    ->assertParagraphEntityFieldExists('field_email', 'email');
  $this
    ->assertParagraphEntityFieldExists('field_text', 'string');
  $this
    ->assertParagraphEntityFieldExists('field_text_list', 'list_string');
  $this
    ->assertParagraphEntityFieldExists('field_integer_list', 'list_integer');
  $this
    ->assertParagraphFieldExists('node', 'field_any_paragraph');
  $this
    ->assertParagraphFieldExists('node', 'field_paragraph_one_only');
  $this
    ->assertParagraphFieldExists('node', 'field_field_collection_test');
}