function SourceModuleTest::testSourceModuleInMigration
Tests the source_module is set when not in source plugin annotation.
File
-
core/
modules/ migrate_drupal_ui/ tests/ src/ Kernel/ SourceModuleTest.php, line 24
Class
- SourceModuleTest
- Tests source_module selection.
Namespace
Drupal\Tests\migrate_drupal_ui\KernelCode
public function testSourceModuleInMigration() : void {
$migration = \Drupal::service('plugin.manager.migration')->createInstance("migrate_source_module_test");
$this->assertSame('foo', $migration->getSourcePlugin()
->getSourceModule());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.