protected static $modules =
['migrate', 'migrate_expected_migrations_test'
];
/**
* Tests Migration::getProcessPlugins()
*
* @covers ::getProcessPlugins
*/
public function testGetProcessPlugins() { $migration = \Drupal::
service('plugin.manager.migration'
)->
createStubMigration([]);
$this->
assertEquals([],
$migration->
getProcessPlugins([]));
} /**
* Tests Migration::getProcessPlugins() throws an exception.
*
* @covers ::getProcessPlugins
*/
public function testGetProcessPluginsException() { $migration = \Drupal::
service('plugin.manager.migration'
)->
createStubMigration([]);
$this->
expectException(MigrateException::
class);
$this->
expectExceptionMessage('Invalid process configuration for foobar'
);