diff -u b/core/modules/migrate/src/Tests/MigrateSkipRowTest.php b/core/modules/migrate/src/Tests/MigrateSkipRowTest.php --- b/core/modules/migrate/src/Tests/MigrateSkipRowTest.php +++ b/core/modules/migrate/src/Tests/MigrateSkipRowTest.php @@ -37,7 +37,16 @@ $config = [ 'id' => 'sample_data', 'migration_tags' => ['prepare_row test'], - 'source' => ['plugin' => 'data'], + 'source' => [ + 'plugin' => 'embedded_data', + 'data_rows' => [ + ['id' => '1', 'data' => 'skip_and_record'], + ['id' => '2', 'data' => 'skip_and_dont_record'] + ], + 'ids' => [ + 'id' => ['type' => 'string'], + ], + ], 'process' => ['value' => 'data'], 'destination' => [ 'plugin' => 'config', reverted: --- b/core/modules/migrate/tests/modules/migrate_prepare_row_test/src/Plugin/migrate/source/DataSource.php +++ /dev/null @@ -1,59 +0,0 @@ - t('Data'), - ); - } - - /** - * {@inheritdoc} - */ - public function initializeIterator() { - return new \ArrayIterator([ - ['id' => '1', 'data' => 'skip_and_record'], - ['id' => '2', 'data' => 'skip_and_dont_record'], - ]); - } - - public function __toString() { - return 'Sample data for testing'; - } - - /** - * {@inheritdoc} - */ - public function getIds() { - $ids['id']['type'] = 'string'; - return $ids; - } - - /** - * {@inheritdoc} - */ - public function count() { - return 2; - } - -}