summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2014-10-27 10:01:54 (GMT)
committerAlex Pott2014-10-27 10:01:54 (GMT)
commit864a9b9eb572f8350d2eef4331c8df4e21a0573c (patch)
tree95bf048d9802cdd15f40262b9ff707aa2bf6c124
parent56af6886be947d3fd38e25fd240f1f8236ec9309 (diff)
Issue #2353699 by jarsenx | ultimike: D6->D8 Migration missing variable: default_nodes_main.
-rw-r--r--core/modules/migrate_drupal/config/install/migrate.migration.d6_node_settings.yml5
-rw-r--r--core/modules/migrate_drupal/src/Tests/Dump/Drupal6NodeSettings.php4
-rw-r--r--core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php3
3 files changed, 8 insertions, 4 deletions
diff --git a/core/modules/migrate_drupal/config/install/migrate.migration.d6_node_settings.yml b/core/modules/migrate_drupal/config/install/migrate.migration.d6_node_settings.yml
index 10a7253..487a4c4 100644
--- a/core/modules/migrate_drupal/config/install/migrate.migration.d6_node_settings.yml
+++ b/core/modules/migrate_drupal/config/install/migrate.migration.d6_node_settings.yml
@@ -6,11 +6,10 @@ source:
plugin: variable
variables:
- node_admin_theme
+ - default_nodes_main
process:
use_admin_theme: node_admin_theme
+ items_per_page: default_nodes_main
destination:
plugin: config
config_name: node.settings
-migration_dependencies:
- required:
- - d6_node_type
diff --git a/core/modules/migrate_drupal/src/Tests/Dump/Drupal6NodeSettings.php b/core/modules/migrate_drupal/src/Tests/Dump/Drupal6NodeSettings.php
index 4fb67b9..eb4353e 100644
--- a/core/modules/migrate_drupal/src/Tests/Dump/Drupal6NodeSettings.php
+++ b/core/modules/migrate_drupal/src/Tests/Dump/Drupal6NodeSettings.php
@@ -25,6 +25,10 @@ class Drupal6NodeSettings extends Drupal6DumpBase {
'name' => 'node_admin_theme',
'value' => 'i:0;',
))
+ ->values(array(
+ 'name' => 'default_nodes_main',
+ 'value' => 's:1:"3";',
+ ))
->execute();
}
}
diff --git a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php
index 0f3d539..d2675f2 100644
--- a/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php
+++ b/core/modules/migrate_drupal/src/Tests/d6/MigrateNodeConfigsTest.php
@@ -47,7 +47,8 @@ class MigrateNodeConfigsTest extends MigrateDrupalTestBase {
*/
public function testNodeSettings() {
$config = \Drupal::config('node.settings');
- $this->assertIdentical($config->get('use_admin_theme'), false);
+ $this->assertIdentical($config->get('use_admin_theme'), FALSE);
+ $this->assertIdentical($config->get('items_per_page'), 3);
$this->assertConfigSchema(\Drupal::service('config.typed'), 'node.settings', $config->get());
}