public function ParagraphsFieldInstanceSettingsTest::testParagraphsInstanceFieldSettings

Test settings for paragraphs field instances.

@dataProvider getData

Parameters

array $source: The data source.

array $expected: The expected result.

File

paragraphs/tests/src/Unit/migrate/ParagraphsFieldInstanceSettingsTest.php, line 38

Class

ParagraphsFieldInstanceSettingsTest
Test the ParagraphFieldInstanceSettings Process Plugin.

Namespace

Drupal\Tests\paragraphs\Unit\migrate

Code

public function testParagraphsInstanceFieldSettings(array $source, array $expected) {
  $value = $this->plugin
    ->transform($source, $this->migrateExecutable, $this->row, 'settings');
  $this
    ->assertEquals($expected, $value);
}