You are here

public function ParagraphsFieldInstanceSettingsTest::testParagraphsInstanceFieldSettings in Paragraphs 8

Test settings for paragraphs field instances.

@dataProvider getData

Parameters

array $source: The data source.

array $expected: The expected result.

File

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);
}