public function MigrationPluginConfigurationTest::mergeProvider in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationPluginConfigurationTest::mergeProvider()
- 9 core/modules/migrate/tests/src/Kernel/Plugin/MigrationPluginConfigurationTest.php \Drupal\Tests\migrate\Kernel\Plugin\MigrationPluginConfigurationTest::mergeProvider()
Provide configuration data for testing.
File
- core/
modules/ migrate/ tests/ src/ Kernel/ Plugin/ MigrationPluginConfigurationTest.php, line 42
Class
- MigrationPluginConfigurationTest
- Tests the migration plugin manager.
Namespace
Drupal\Tests\migrate\Kernel\PluginCode
public function mergeProvider() {
return [
// Tests adding new configuration to a migration.
[
// New configuration.
'd7_blocked_ips',
[
'source' => [
'constants' => [
'added_setting' => 'Ban them all!',
],
],
],
// Expected final source configuration.
[
'plugin' => 'd7_blocked_ips',
'constants' => [
'added_setting' => 'Ban them all!',
],
],
],
// Tests overriding pre-existing configuration in a migration.
[
// New configuration.
'd7_blocked_ips',
[
'source' => [
'plugin' => 'a_different_plugin',
],
],
// Expected final source configuration.
[
'plugin' => 'a_different_plugin',
],
],
// New configuration.
[
'locale_settings',
[
'source' => [
'plugin' => 'variable',
'variables' => [
'locale_cache_strings',
'locale_js_directory',
],
'source_module' => 'locale',
],
],
// Expected final source and process configuration.
[
'plugin' => 'variable',
'variables' => [
'locale_cache_strings',
'locale_js_directory',
],
'source_module' => 'locale',
],
],
];
}