public function MigrationProvidersExistTest::testSourceProvider in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationProvidersExistTest::testSourceProvider()
Tests that a missing source_module property raises an exception.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationProvidersExistTest.php, line 24
Class
- MigrationProvidersExistTest
- Tests that modules exist for all source and destination plugins.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testSourceProvider() {
$this
->enableModules([
'migration_provider_test',
]);
$this
->expectException(BadPluginDefinitionException::class);
$this
->expectExceptionMessage('The no_source_module plugin must define the source_module property.');
$this->container
->get('plugin.manager.migration')
->getDefinition('migration_provider_no_annotation');
}