class ParagraphsTypeSourceTest

Test the paragraphs_type source plugin.

@covers \Drupal\paragraphs\Plugin\migrate\source\d7\ParagraphsType @group paragraphs

Hierarchy

Expanded class hierarchy of ParagraphsTypeSourceTest

File

paragraphs/tests/src/Kernel/migrate/ParagraphsTypeSourceTest.php, line 14

Namespace

Drupal\Tests\paragraphs\Kernel\migrate
View source
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;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
ParagraphsSourceData::getSourceData protected function Provides a source data array for the source tests.
ParagraphsTypeSourceTest::$modules protected static property
ParagraphsTypeSourceTest::providerSource public function