'id' =>
['type' => 'string'
],
],
],
'process' =>
['value' => 'data'
],
'destination' =>
[ 'plugin' => 'config',
'config_name' => 'migrate_test.settings',
],
'load' =>
['plugin' => 'null'
],
];
$migration = \Drupal::
service('plugin.manager.migration'
)->
createStubMigration($definition);
$executable =
new MigrateExecutable($migration);
$result =
$executable->
import();
$this->
assertEquals(MigrationInterface::RESULT_COMPLETED,
$result);
/** @var \Drupal\migrate\Plugin\MigrateIdMapInterface $id_map_plugin */
$id_map_plugin =
$migration->
getIdMap();
// The first row is recorded in the map as ignored.
$map_row =
$id_map_plugin->
getRowBySource(['id' => 1
]);
$this->
assertEquals(MigrateIdMapInterface::STATUS_IGNORED,
$map_row['source_row_status'
]);
// Check that no message has been logged for the first exception.