Skip to content
Snippets Groups Projects
Unverified Commit bbac45a7 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2984610 by Jo Fitzgerald, quietone: Migration::getProcessPlugins()...

Issue #2984610 by Jo Fitzgerald, quietone: Migration::getProcessPlugins() requires test that exception is thrown
parent 9fc5c596
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -3,6 +3,7 @@
namespace Drupal\Tests\migrate\Kernel\Plugin;
use Drupal\KernelTests\KernelTestBase;
use Drupal\migrate\MigrateException;
/**
* Tests the migration plugin.
......@@ -27,6 +28,17 @@ public function testGetProcessPlugins() {
$this->assertEquals([], $migration->getProcessPlugins([]));
}
/**
* 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()
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment