function MigrationPluginConfigurationTest::testConfigurationMerge
Test merging configuration into a plugin through the plugin manager.
@dataProvider mergeProvider
File
- 
              core/modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationPluginConfigurationTest.php, line 31 
Class
- MigrationPluginConfigurationTest
- Tests the migration plugin manager.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function testConfigurationMerge($id, $configuration, $expected) {
  /** @var \Drupal\migrate\Plugin\MigrationInterface $migration */
  $migration = $this->container
    ->get('plugin.manager.migration')
    ->createInstance($id, $configuration);
  $source_configuration = $migration->getSourceConfiguration();
  $this->assertEquals($expected, $source_configuration);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
