summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-10-04 14:34:46 (GMT)
committerNathaniel Catchpole2018-10-04 14:34:56 (GMT)
commit7eda7753c7df6606ca44b0d680a7a8878b60cd44 (patch)
treeb88d1dc652132a0a29b80a9331de9de611a0fc52 /core/modules/migrate_drupal
parent3c0af3732ea3e4d4c6f153f4b37beb5ebc68984e (diff)
Issue #2980996 by maxocub, masipila, mradcliffe, Gábor Hojtsy: Migrate Drupal 7 taxonomy term entity translations data to Drupal 8
(cherry picked from commit e5a4531a358af9624f0b56b41c780d2464fc6491)
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/fixtures/drupal7.php178
1 files changed, 173 insertions, 5 deletions
diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal7.php b/core/modules/migrate_drupal/tests/fixtures/drupal7.php
index fedfd38..cdacddb3 100644
--- a/core/modules/migrate_drupal/tests/fixtures/drupal7.php
+++ b/core/modules/migrate_drupal/tests/fixtures/drupal7.php
@@ -3176,6 +3176,42 @@ $connection->insert('entity_translation')
'changed' => '1529615813',
))
->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'en',
+ 'source' => '',
+ 'uid' => '1',
+ 'status' => '1',
+ 'translate' => '0',
+ 'created' => '1531922259',
+ 'changed' => '1531922259',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'source' => 'en',
+ 'uid' => '2',
+ 'status' => '1',
+ 'translate' => '1',
+ 'created' => '1531922267',
+ 'changed' => '1531922268',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'source' => 'en',
+ 'uid' => '1',
+ 'status' => '0',
+ 'translate' => '0',
+ 'created' => '1531922278',
+ 'changed' => '1531922279',
+))
+->values(array(
'entity_type' => 'user',
'entity_id' => '2',
'revision_id' => '2',
@@ -5050,10 +5086,34 @@ $connection->insert('field_data_description_field')
'revision_id' => '4',
'language' => 'en',
'delta' => '0',
- 'description_field_value' => 'The third term.',
+ 'description_field_value' => 'The third term in plain old English.',
'description_field_summary' => '',
'description_field_format' => 'full_html',
))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'description_field_value' => 'The third term en français s\'il vous plaît.',
+ 'description_field_summary' => '',
+ 'description_field_format' => 'filtered_html',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'description_field_value' => 'The third term á íslensku.',
+ 'description_field_summary' => '',
+ 'description_field_format' => 'plain_text',
+))
->execute();
$connection->schema()->createTable('field_data_field_boolean', array(
@@ -6223,6 +6283,26 @@ $connection->insert('field_data_field_integer')
'delta' => '0',
'field_integer_value' => '6',
))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'field_integer_value' => '5',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'field_integer_value' => '4',
+))
->execute();
$connection->schema()->createTable('field_data_field_integer_list', array(
@@ -8648,7 +8728,29 @@ $connection->insert('field_data_name_field')
'revision_id' => '4',
'language' => 'en',
'delta' => '0',
- 'name_field_value' => 'Term3',
+ 'name_field_value' => 'Term3 in plain old English',
+ 'name_field_format' => NULL,
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'name_field_value' => 'Term3 en français s\'il vous plaît',
+ 'name_field_format' => NULL,
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'name_field_value' => 'Term3 á íslensku',
'name_field_format' => NULL,
))
->execute();
@@ -9392,8 +9494,32 @@ $connection->insert('field_revision_description_field')
'revision_id' => '4',
'language' => 'en',
'delta' => '0',
- 'description_field_value' => 'The third term.',
- 'description_field_summary' => NULL,
+ 'description_field_value' => 'The third term in plain old English.',
+ 'description_field_summary' => '',
+ 'description_field_format' => 'full_html',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'description_field_value' => 'The third term en français s\'il vous plaît.',
+ 'description_field_summary' => '',
+ 'description_field_format' => 'full_html',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'description_field_value' => 'The third term á íslensku.',
+ 'description_field_summary' => '',
'description_field_format' => 'full_html',
))
->execute();
@@ -10557,6 +10683,26 @@ $connection->insert('field_revision_field_integer')
'delta' => '0',
'field_integer_value' => '6',
))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'field_integer_value' => '5',
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'field_integer_value' => '4',
+))
->execute();
$connection->schema()->createTable('field_revision_field_integer_list', array(
@@ -13015,7 +13161,29 @@ $connection->insert('field_revision_name_field')
'revision_id' => '4',
'language' => 'en',
'delta' => '0',
- 'name_field_value' => 'Term3',
+ 'name_field_value' => 'Term3 in plain old English',
+ 'name_field_format' => NULL,
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'name_field_value' => 'Term3 en français s\'il vous plaît',
+ 'name_field_format' => NULL,
+))
+->values(array(
+ 'entity_type' => 'taxonomy_term',
+ 'bundle' => 'test_vocabulary',
+ 'deleted' => '0',
+ 'entity_id' => '4',
+ 'revision_id' => '4',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'name_field_value' => 'Term3 á íslensku',
'name_field_format' => NULL,
))
->execute();