Created
September 26, 2017 15:18
-
-
Save heddn/4712d23bd9c6564d06e001e8df783752 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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