Skip to content

Instantly share code, notes, and snippets.

@heddn
Created September 26, 2017 15:18
Show Gist options
  • Save heddn/4712d23bd9c6564d06e001e8df783752 to your computer and use it in GitHub Desktop.
Save heddn/4712d23bd9c6564d06e001e8df783752 to your computer and use it in GitHub Desktop.
public function testFieldProviderCore() {
/** @var \Drupal\migrate_drupal\Plugin\MigrateFieldPluginManagerInterface $plugin_manager */
$plugin_manager = $this->container->get('plugin.manager.migrate.field');
$this->setExpectedException(InvalidPluginDefinitionException::class, 'The missing_core plugin should define the core property.');
$this->setExpectedException(InvalidPluginDefinitionException::class, 'The missing_source plugin should define the source_module property.');
$this->setExpectedException(InvalidPluginDefinitionException::class, 'The missing_destination plugin should define the destination_module property.');
$plugin_manager->getDefinition('missing_core');
$plugin_manager->getDefinition('missing_source');
$plugin_manager->getDefinition('missing_destination');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment