public static function FieldCollectionItemSourceTest::providerSource

File

paragraphs/tests/src/Kernel/migrate/FieldCollectionItemSourceTest.php, line 25

Class

FieldCollectionItemSourceTest
Test the field_collection_item source plugin.

Namespace

Drupal\Tests\paragraphs\Kernel\migrate

Code

public static function providerSource() {
  $data = static::getSourceData();
  $data[0]['expected_data'] = [
    [
      'item_id' => '1',
      'revision_id' => '1',
      'field_name' => 'field_field_collection_field',
      'bundle' => 'field_collection_field',
      'archived' => '0',
      'field_text' => [
        0 => [
          'value' => 'FCID1R1 text',
        ],
      ],
    ],
    [
      'item_id' => '2',
      'revision_id' => '3',
      'field_name' => 'field_field_collection_field',
      'bundle' => 'field_collection_field',
      'archived' => '0',
      'field_text' => [
        0 => [
          'value' => 'FCID2R3 text',
        ],
      ],
    ],
  ];
  return $data;
}