Unverified Commit bbac45a7 authored by alexpott's avatar alexpott
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
......@@ -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()
*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment