'migration_tags' =>
['Embedded data test'
],
'source' =>
[ 'plugin' => 'embedded_data',
'data_rows' =>
$data_rows,
'ids' =>
$ids,
],
'process' =>
[],
'destination' =>
['plugin' => 'entity:entity_test'
],
];
$migration = \Drupal::
service('plugin.manager.migration'
)->
createStubMigration($definition);
$executable =
new TestMigrateExecutable($migration);
$this->
assertEquals(MigrationInterface::RESULT_COMPLETED,
$executable->
import());
// Test the exception message when a process plugin throws a
// MigrateSkipRowException. Change the definition to have one data row and a
// process that will throw a MigrateSkipRowException on every row.
$definition['source'
]['data_rows'
] =
[ [ 'key' => '1',
'field1' => 'f1value1',
],
];