summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-08-21 11:15:13 (GMT)
committerNathaniel Catchpole2018-08-21 11:15:21 (GMT)
commitc09a201e193218def8ae3ca6226ccf437e976aba (patch)
tree72c485ff648bb2946418e2debe4a21d7b49fd4aa /core/modules/migrate_drupal
parenta94c8d5c2c316e2fa94ab30786d4271598491d17 (diff)
Issue #2669984 by maxocub, masipila: Migrate Drupal 7 user entity translations data to Drupal 8
(cherry picked from commit fbe82f785b1e3b4e84dec200da495637c40e4dff)
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/fixtures/drupal7.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal7.php b/core/modules/migrate_drupal/tests/fixtures/drupal7.php
index 1d6d1d3..c41b20e 100644
--- a/core/modules/migrate_drupal/tests/fixtures/drupal7.php
+++ b/core/modules/migrate_drupal/tests/fixtures/drupal7.php
@@ -3171,6 +3171,30 @@ $connection->insert('entity_translation')
'created' => '1527594929',
'changed' => '1527594929',
))
+->values(array(
+ 'entity_type' => 'user',
+ 'entity_id' => '2',
+ 'revision_id' => '2',
+ 'language' => 'fr',
+ 'source' => 'en',
+ 'uid' => '1',
+ 'status' => '0',
+ 'translate' => '0',
+ 'created' => '1531663916',
+ 'changed' => '1531663916',
+))
+->values(array(
+ 'entity_type' => 'user',
+ 'entity_id' => '2',
+ 'revision_id' => '2',
+ 'language' => 'is',
+ 'source' => 'en',
+ 'uid' => '2',
+ 'status' => '1',
+ 'translate' => '1',
+ 'created' => '1531663925',
+ 'changed' => '1531663925',
+))
->execute();
$connection->schema()->createTable('entity_translation_revision', array(
@@ -6143,6 +6167,26 @@ $connection->insert('field_data_field_integer')
'field_integer_value' => '99',
))
->values(array(
+ 'entity_type' => 'user',
+ 'bundle' => 'user',
+ 'deleted' => '0',
+ 'entity_id' => '2',
+ 'revision_id' => '2',
+ 'language' => 'fr',
+ 'delta' => '0',
+ 'field_integer_value' => '9',
+))
+->values(array(
+ 'entity_type' => 'user',
+ 'bundle' => 'user',
+ 'deleted' => '0',
+ 'entity_id' => '2',
+ 'revision_id' => '2',
+ 'language' => 'is',
+ 'delta' => '0',
+ 'field_integer_value' => '1',
+))
+->values(array(
'entity_type' => 'taxonomy_term',
'bundle' => 'test_vocabulary',
'deleted' => '0',