summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorAlex Pott2018-03-19 17:22:57 (GMT)
committerAlex Pott2018-03-19 17:22:57 (GMT)
commit96a368c6c6d23c4bd91e4d4995a6d13594eb4361 (patch)
tree35e943ca972a4fab6956cc7a8871d29d9f1c815d /core/modules/migrate_drupal
parent43645ea9555a0ed2dece288b15d82c2e7af3217d (diff)
Issue #2924570 by maxocub, Rajesh Kairamkonda, heddn: Missing mappings for "nodereference_buttons" & "nodereference_autocomplete" widgets
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/fixtures/drupal6.php70
1 files changed, 70 insertions, 0 deletions
diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal6.php b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
index 059ba78..b49c92c 100644
--- a/core/modules/migrate_drupal/tests/fixtures/drupal6.php
+++ b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
@@ -2717,6 +2717,30 @@ $connection->insert('content_node_field')
'locked' => '0',
))
->values(array(
+ 'field_name' => 'field_company_2',
+ 'type' => 'nodereference',
+ 'global_settings' => 'a:1:{s:19:"referenceable_types";a:10:{s:7:"company";s:7:"company";s:7:"article";i:0;s:8:"employee";i:0;s:5:"forum";i:0;s:10:"test_event";i:0;s:9:"test_page";i:0;s:11:"test_planet";i:0;s:10:"test_story";i:0;s:7:"sponsor";i:0;s:5:"story";i:0;}}',
+ 'required' => '0',
+ 'multiple' => '0',
+ 'db_storage' => '1',
+ 'module' => 'nodereference',
+ 'db_columns' => 'a:1:{s:3:"nid";a:4:{s:4:"type";s:3:"int";s:8:"unsigned";b:1;s:8:"not null";b:0;s:5:"index";b:1;}}',
+ 'active' => '1',
+ 'locked' => '0',
+))
+->values(array(
+ 'field_name' => 'field_company_3',
+ 'type' => 'nodereference',
+ 'global_settings' => 'a:1:{s:19:"referenceable_types";a:10:{s:7:"company";s:7:"company";s:7:"article";i:0;s:8:"employee";i:0;s:5:"forum";i:0;s:10:"test_event";i:0;s:9:"test_page";i:0;s:11:"test_planet";i:0;s:10:"test_story";i:0;s:7:"sponsor";i:0;s:5:"story";i:0;}}',
+ 'required' => '0',
+ 'multiple' => '0',
+ 'db_storage' => '1',
+ 'module' => 'nodereference',
+ 'db_columns' => 'a:1:{s:3:"nid";a:4:{s:4:"type";s:3:"int";s:8:"unsigned";b:1;s:8:"not null";b:0;s:5:"index";b:1;}}',
+ 'active' => '1',
+ 'locked' => '0',
+))
+->values(array(
'field_name' => 'field_multivalue',
'type' => 'number_decimal',
'global_settings' => 'a:9:{s:6:"prefix";s:0:"";s:6:"suffix";s:0:"";s:3:"min";s:0:"";s:3:"max";s:0:"";s:14:"allowed_values";s:0:"";s:18:"allowed_values_php";s:0:"";s:9:"precision";s:2:"10";s:5:"scale";s:1:"2";s:7:"decimal";s:1:".";}',
@@ -3075,6 +3099,30 @@ $connection->insert('content_node_field_instance')
'widget_active' => '1',
))
->values(array(
+ 'field_name' => 'field_company_2',
+ 'type_name' => 'employee',
+ 'weight' => '33',
+ 'label' => 'Company 2',
+ 'widget_type' => 'nodereference_buttons',
+ 'widget_settings' => 'a:4:{s:18:"autocomplete_match";s:8:"contains";s:4:"size";i:60;s:13:"default_value";a:1:{i:0;a:1:{s:3:"nid";s:0:"";}}s:17:"default_value_php";N;}',
+ 'display_settings' => 'a:5:{s:5:"label";a:2:{s:6:"format";s:5:"above";s:7:"exclude";i:0;}i:5;a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}s:6:"teaser";a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}s:4:"full";a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}i:4;a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}}',
+ 'description' => '',
+ 'widget_module' => 'nodereference',
+ 'widget_active' => '1',
+))
+->values(array(
+ 'field_name' => 'field_company_3',
+ 'type_name' => 'employee',
+ 'weight' => '34',
+ 'label' => 'Company 3',
+ 'widget_type' => 'nodereference_autocomplete',
+ 'widget_settings' => 'a:4:{s:18:"autocomplete_match";s:8:"contains";s:4:"size";s:2:"60";s:13:"default_value";a:1:{i:0;a:2:{s:3:"nid";N;s:14:"_error_element";s:50:"default_value_widget][field_company_3][0][nid][nid";}}s:17:"default_value_php";N;}',
+ 'display_settings' => 'a:5:{s:5:"label";a:2:{s:6:"format";s:5:"above";s:7:"exclude";i:0;}i:5;a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}s:6:"teaser";a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}s:4:"full";a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}i:4;a:2:{s:6:"format";s:7:"default";s:7:"exclude";i:0;}}',
+ 'description' => '',
+ 'widget_module' => 'nodereference',
+ 'widget_active' => '1',
+))
+->values(array(
'field_name' => 'field_multivalue',
'type_name' => 'test_planet',
'weight' => '2',
@@ -3374,6 +3422,18 @@ $connection->schema()->createTable('content_type_employee', array(
'size' => 'normal',
'unsigned' => TRUE,
),
+ 'field_company_2_nid' => array(
+ 'type' => 'int',
+ 'not null' => FALSE,
+ 'size' => 'normal',
+ 'unsigned' => TRUE,
+ ),
+ 'field_company_3_nid' => array(
+ 'type' => 'int',
+ 'not null' => FALSE,
+ 'size' => 'normal',
+ 'unsigned' => TRUE,
+ ),
),
'primary key' => array(
'vid',
@@ -3385,6 +3445,12 @@ $connection->schema()->createTable('content_type_employee', array(
'field_commander_uid' => array(
'field_commander_uid',
),
+ 'field_company_2_nid' => array(
+ 'field_company_2_nid',
+ ),
+ 'field_company_3_nid' => array(
+ 'field_company_3_nid',
+ ),
),
'mysql_character_set' => 'utf8',
));
@@ -3394,11 +3460,15 @@ $connection->insert('content_type_employee')
'vid',
'nid',
'field_commander_uid',
+ 'field_company_2_nid',
+ 'field_company_3_nid',
))
->values(array(
'vid' => '21',
'nid' => '18',
'field_commander_uid' => '8',
+ 'field_company_2_nid' => '15',
+ 'field_company_3_nid' => '16',
))
->execute();