FieldCollectionItemRevisionSourceTest.php in Paragraphs 8
File
tests/src/Kernel/migrate/FieldCollectionItemRevisionSourceTest.php
View source
<?php
namespace Drupal\Tests\paragraphs\Kernel\migrate;
use Drupal\Tests\migrate\Kernel\MigrateSqlSourceTestBase;
use Drupal\Tests\paragraphs\Traits\FieldCollectionSourceData;
class FieldCollectionItemRevisionSourceTest extends MigrateSqlSourceTestBase {
use FieldCollectionSourceData;
public static $modules = [
'migrate_drupal',
'paragraphs',
];
public function providerSource() {
$data = $this
->getSourceData();
$data[0]['expected_results'] = [
[
'item_id' => '2',
'revision_id' => '2',
'field_name' => 'field_field_collection_field',
'bundle' => 'field_collection_field',
'archived' => '0',
'field_text' => [
0 => [
'value' => 'FCID2R2 text',
],
],
],
];
return $data;
}
}