Commit da0c4fa4 authored by catch's avatar catch

Issue #2130277 by phenaproxima, michaellenahan, Jo Fitzgerald, David...

Issue #2130277 by phenaproxima, michaellenahan, Jo Fitzgerald, David Hernández, hardik.p, fastangel, alvar0hurtad0: Variable to config: filter.settings [D7 only]
parent 2a967c4a
id: d7_filter_settings
label: Drupal 7 filter settings
migration_tags:
- Drupal 7
source:
plugin: variable
variables:
- filter_fallback_format
process:
fallback_format: filter_fallback_format
destination:
plugin: config
config_name: filter.settings
<?php
namespace Drupal\Tests\filter\Kernel\Migrate\d7;
use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
/**
* Tests migration of Filter's settings to configuration.
*
* @group filter
*/
class MigrateFilterSettingsTest extends MigrateDrupal7TestBase {
public static $modules = ['filter'];
/**
* {@inheritdoc}
*/
protected function setUp() {
parent::setUp();
$this->installConfig(static::$modules);
$this->executeMigration('d7_filter_settings');
}
/**
* Tests migration of Filter variables to configuration.
*/
public function testFilterSettings() {
$this->assertSame('plain_text', $this->config('filter.settings')->get('fallback_format'));
}
}
......@@ -250,6 +250,10 @@ class MigrateUpgradeForm extends ConfirmFormBase {
'source_module' => 'filter',
'destination_module' => 'filter',
],
'd7_filter_settings' => [
'source_module' => 'filter',
'destination_module' => 'filter',
],
'd6_forum_settings' => [
'source_module' => 'forum',
'destination_module' => 'forum',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment