summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorAlex Pott2018-04-10 14:58:25 (GMT)
committerAlex Pott2018-04-10 14:58:25 (GMT)
commitb930c804e13f1d3ac53f41da124e9ff86035ccea (patch)
treee03295d8e2c8459b93fec19ae62966274e206d3b /core/modules/migrate_drupal
parentb61e2a65fc44b2b33a668fae7cfdbf8a2f6fe95b (diff)
Issue #2225587 by quietone, Jo Fitzgerald, alexpott, heddn, Pavan B S, maxocub, phenaproxima, Gábor Hojtsy, ao2: Migrate D6 i18n menu links
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/fixtures/drupal6.php89
1 files changed, 88 insertions, 1 deletions
diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal6.php b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
index ea4eee6..4d4e18b 100644
--- a/core/modules/migrate_drupal/tests/fixtures/drupal6.php
+++ b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
@@ -9710,6 +9710,38 @@ $connection->insert('i18n_strings')
'objectindex' => '7',
'format' => '0',
))
+->values(array(
+ 'lid' => '1674',
+ 'objectid' => '463',
+ 'type' => 'item',
+ 'property' => 'title',
+ 'objectindex' => '463',
+ 'format' => '0',
+))
+->values(array(
+ 'lid' => '1675',
+ 'objectid' => '463',
+ 'type' => 'item',
+ 'property' => 'description',
+ 'objectindex' => '463',
+ 'format' => '0',
+))
+->values(array(
+ 'lid' => '1676',
+ 'objectid' => '138',
+ 'type' => 'item',
+ 'property' => 'title',
+ 'objectindex' => '138',
+ 'format' => '0',
+))
+->values(array(
+ 'lid' => '1677',
+ 'objectid' => '138',
+ 'type' => 'item',
+ 'property' => 'description',
+ 'objectindex' => '138',
+ 'format' => '0',
+))
->execute();
$connection->schema()->createTable('i18n_variable', array(
@@ -22176,6 +22208,34 @@ $connection->insert('locales_source')
'source' => 'Forums',
'version' => '1',
))
+->values(array(
+ 'lid' => '1674',
+ 'location' => 'item:463:title',
+ 'textgroup' => 'menu',
+ 'source' => 'fr - Test 1',
+ 'version' => '1',
+))
+->values(array(
+ 'lid' => '1675',
+ 'location' => 'item:463:description',
+ 'textgroup' => 'menu',
+ 'source' => 'fr - Test menu link 1',
+ 'version' => '1',
+))
+->values(array(
+ 'lid' => '1676',
+ 'location' => 'item:138:title',
+ 'textgroup' => 'menu',
+ 'source' => 'Test 1',
+ 'version' => '1',
+))
+->values(array(
+ 'lid' => '1677',
+ 'location' => 'item:138:description',
+ 'textgroup' => 'menu',
+ 'source' => 'Test menu link 1',
+ 'version' => '1',
+))
->execute();
$connection->schema()->createTable('locales_target', array(
@@ -27705,7 +27765,7 @@ $connection->insert('menu_links')
'link_path' => 'user/login',
'router_path' => 'user/login',
'link_title' => 'Test 1',
- 'options' => 'a:1:{s:10:"attributes";a:1:{s:5:"title";s:16:"Test menu link 1";}}',
+ 'options' => 'a:2:{s:10:"attributes";a:1:{s:5:"title";s:16:"Test menu link 1";}s:8:"langcode";s:2:"en";}',
'module' => 'menu',
'hidden' => '0',
'external' => '0',
@@ -33827,6 +33887,33 @@ $connection->insert('menu_links')
'p9' => '0',
'updated' => '0',
))
+->values(array(
+ 'menu_name' => 'secondary-links',
+ 'mlid' => '463',
+ 'plid' => '139',
+ 'link_path' => 'user/login',
+ 'router_path' => 'user/login',
+ 'link_title' => 'fr - Test 1',
+ 'options' => 'a:3:{s:10:"attributes";a:1:{s:5:"title";s:21:"fr - Test menu link 1";}s:8:"langcode";s:2:"fr";s:5:"alter";b:1;}',
+ 'module' => 'menu',
+ 'hidden' => '0',
+ 'external' => '0',
+ 'has_children' => '0',
+ 'expanded' => '0',
+ 'weight' => '-49',
+ 'depth' => '2',
+ 'customized' => '1',
+ 'p1' => '139',
+ 'p2' => '459',
+ 'p3' => '0',
+ 'p4' => '0',
+ 'p5' => '0',
+ 'p6' => '0',
+ 'p7' => '0',
+ 'p8' => '0',
+ 'p9' => '0',
+ 'updated' => '0',
+))
->execute();
$connection->schema()->createTable('menu_router', array(