Test Migration of paragraph and field collection bundles.
@group paragraphs
Expanded class hierarchy of ParagraphsTypeMigrationTest
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');
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParagraphsMigrationTestBase:: |
protected static | property | 2 | |
ParagraphsMigrationTestBase:: |
protected | function | Test if the given field instance was created. | |
ParagraphsMigrationTestBase:: |
protected | function | Check to see if paragraph types were created. | |
ParagraphsMigrationTestBase:: |
protected | function | Check if a field storage config entity was created for the paragraph. | |
ParagraphsMigrationTestBase:: |
protected | function | Check if a field storage entity was created for the paragraph fields. | |
ParagraphsMigrationTestBase:: |
protected | function | Find and execute a migration's dependencies. | |
ParagraphsMigrationTestBase:: |
protected | function | Execute a migration's dependencies followed by the migration. | |
ParagraphsMigrationTestBase:: |
protected | function | ||
ParagraphsMigrationTestBase:: |
public | function | 1 | |
ParagraphsTypeMigrationTest:: |
public | function | Test if the paragraph/fc types were brought over as a paragraph. |