function MigrationProvidersExistTest::testSourceProvider
Same name in other branches
- 9 core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationProvidersExistTest::testSourceProvider()
- 8.9.x core/modules/migrate/tests/src/Kernel/Plugin/MigrationProvidersExistTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationProvidersExistTest::testSourceProvider()
- 10 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 27
Class
- MigrationProvidersExistTest
- Tests that modules exist for all source and destination plugins.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testSourceProvider() : void {
$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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.