Test the paragraphs_type source plugin.
@covers \Drupal\paragraphs\Plugin\migrate\source\d7\ParagraphsType @group paragraphs
Expanded class hierarchy of ParagraphsTypeSourceTest
class ParagraphsTypeSourceTest extends MigrateSqlSourceTestBase {
use ParagraphsSourceData;
/**
* {@inheritdoc}
*/
protected static $modules = [
'migrate_drupal',
'paragraphs',
];
/**
* {@inheritdoc}
*/
public function providerSource() {
$data = $this
->getSourceData();
$data[0]['expected_results'] = [
[
'bundle' => 'paragraphs_field',
'name' => 'Paragraphs Field',
'locked' => '1',
'description' => '',
],
];
return $data;
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ParagraphsTypeSourceTest:: |
public | function | ||
ParagraphsTypeSourceTest:: |
protected static | property | ||
ParagraphsSourceData:: |
protected | function | Provides a source data array for the source tests. |