diff --git a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php index 2cb6f67..dc2cf8a 100644 --- a/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php +++ b/core/modules/migrate/tests/src/Kernel/Plugin/MigrationTest.php @@ -3,6 +3,7 @@ namespace Drupal\Tests\migrate\Kernel\Plugin; use Drupal\KernelTests\KernelTestBase; +use Drupal\migrate\MigrateException; /** * Tests the migration plugin. @@ -28,6 +29,17 @@ public function testGetProcessPlugins() { } /** + * Tests Migration::getProcessPlugins() throws an exception. + * + * @covers ::getProcessPlugins + */ + public function testGetProcessPluginsException() { + $migration = \Drupal::service('plugin.manager.migration')->createStubMigration([]); + $this->setExpectedException(MigrateException::class, 'Invalid process configuration for foobar'); + $migration->getProcessPlugins(['foobar' => ['plugin' => 'get']]); + } + + /** * Tests Migration::getMigrationDependencies() * * @covers ::getMigrationDependencies