public function MigrationTest::testGetProcessPluginsException in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationTest::testGetProcessPluginsException()
- 10 core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationTest::testGetProcessPluginsException()
Tests Migration::getProcessPlugins() throws an exception.
@covers ::getProcessPlugins
File
- core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationTest.php, line 37
Class
- MigrationTest
- Tests the migration plugin.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testGetProcessPluginsException() {
$migration = \Drupal::service('plugin.manager.migration')
->createStubMigration([]);
$this
->expectException(MigrateException::class);
$this
->expectExceptionMessage('Invalid process configuration for foobar');
$migration
->getProcessPlugins([
'foobar' => [
'plugin' => 'get',
],
]);
}