Skip to content
Snippets Groups Projects
Commit b83e2d78 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2706187 by Jo Fitzgerald: Custom view modes not migrating from d7 to d8

parent d317f6b3
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -14,6 +14,7 @@ process: ...@@ -14,6 +14,7 @@ process:
label: label:
plugin: static_map plugin: static_map
source: view_mode source: view_mode
bypass: true
map: map:
search_index: "Search index" search_index: "Search index"
search_result: "Search result" search_result: "Search result"
......
...@@ -52,6 +52,7 @@ public function testMigration() { ...@@ -52,6 +52,7 @@ public function testMigration() {
$this->assertEntity('comment.full', 'Full', 'comment'); $this->assertEntity('comment.full', 'Full', 'comment');
$this->assertEntity('node.teaser', 'Teaser', 'node'); $this->assertEntity('node.teaser', 'Teaser', 'node');
$this->assertEntity('node.full', 'Full', 'node'); $this->assertEntity('node.full', 'Full', 'node');
$this->assertEntity('node.custom', 'custom', 'node');
$this->assertEntity('user.full', 'Full', 'user'); $this->assertEntity('user.full', 'Full', 'user');
} }
......
...@@ -29,6 +29,10 @@ class ViewModeTest extends MigrateSqlSourceTestCase { ...@@ -29,6 +29,10 @@ class ViewModeTest extends MigrateSqlSourceTestCase {
'entity_type' => 'node', 'entity_type' => 'node',
'view_mode' => 'teaser', 'view_mode' => 'teaser',
), ),
array(
'entity_type' => 'node',
'view_mode' => 'custom',
),
array( array(
'entity_type' => 'user', 'entity_type' => 'user',
'view_mode' => 'default', 'view_mode' => 'default',
...@@ -50,7 +54,7 @@ protected function setUp() { ...@@ -50,7 +54,7 @@ protected function setUp() {
'field_name' => 'body', 'field_name' => 'body',
'entity_type' => 'node', 'entity_type' => 'node',
'bundle' => 'forum', 'bundle' => 'forum',
'data' => 'a:6:{s:5:"label";s:4:"Body";s:6:"widget";a:4:{s:4:"type";s:26:"text_textarea_with_summary";s:8:"settings";a:2:{s:4:"rows";i:20;s:12:"summary_rows";i:5;}s:6:"weight";i:1;s:6:"module";s:4:"text";}s:8:"settings";a:3:{s:15:"display_summary";b:1;s:15:"text_processing";i:1;s:18:"user_register_form";b:0;}s:7:"display";a:2:{s:7:"default";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:11;}s:6:"teaser";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:23:"text_summary_or_trimmed";s:8:"settings";a:1:{s:11:"trim_length";i:600;}s:6:"module";s:4:"text";s:6:"weight";i:11;}}s:8:"required";b:0;s:11:"description";s:0:"";}', 'data' => 'a:6:{s:5:"label";s:4:"Body";s:6:"widget";a:4:{s:4:"type";s:26:"text_textarea_with_summary";s:8:"settings";a:2:{s:4:"rows";i:20;s:12:"summary_rows";i:5;}s:6:"weight";i:1;s:6:"module";s:4:"text";}s:8:"settings";a:3:{s:15:"display_summary";b:1;s:15:"text_processing";i:1;s:18:"user_register_form";b:0;}s:7:"display";a:3:{s:7:"default";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:11;}s:6:"teaser";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:23:"text_summary_or_trimmed";s:8:"settings";a:1:{s:11:"trim_length";i:600;}s:6:"module";s:4:"text";s:6:"weight";i:11;}s:6:"custom";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:23:"text_summary_or_trimmed";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:11;}}s:8:"required";b:0;s:11:"description";s:0:"";}',
'deleted' => '0', 'deleted' => '0',
), ),
array( array(
......
...@@ -3474,7 +3474,7 @@ ...@@ -3474,7 +3474,7 @@
'field_name' => 'body', 'field_name' => 'body',
'entity_type' => 'node', 'entity_type' => 'node',
'bundle' => 'article', 'bundle' => 'article',
'data' => 'a:6:{s:5:"label";s:4:"Body";s:6:"widget";a:4:{s:4:"type";s:26:"text_textarea_with_summary";s:8:"settings";a:2:{s:4:"rows";i:20;s:12:"summary_rows";i:5;}s:6:"weight";i:-4;s:6:"module";s:4:"text";}s:8:"settings";a:3:{s:15:"display_summary";b:1;s:15:"text_processing";i:1;s:18:"user_register_form";b:0;}s:7:"display";a:2:{s:7:"default";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:0;}s:6:"teaser";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:23:"text_summary_or_trimmed";s:8:"settings";a:1:{s:11:"trim_length";i:600;}s:6:"module";s:4:"text";s:6:"weight";i:0;}}s:8:"required";b:0;s:11:"description";s:0:"";}', 'data' => 'a:6:{s:5:"label";s:4:"Body";s:6:"widget";a:4:{s:4:"type";s:26:"text_textarea_with_summary";s:8:"settings";a:2:{s:4:"rows";i:20;s:12:"summary_rows";i:5;}s:6:"weight";i:-4;s:6:"module";s:4:"text";}s:8:"settings";a:3:{s:15:"display_summary";b:1;s:15:"text_processing";i:1;s:18:"user_register_form";b:0;}s:7:"display";a:3:{s:7:"default";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:12:"text_default";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:0;}s:6:"teaser";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:23:"text_summary_or_trimmed";s:8:"settings";a:1:{s:11:"trim_length";i:600;}s:6:"module";s:4:"text";s:6:"weight";i:0;}s:6:"custom";a:5:{s:5:"label";s:6:"hidden";s:4:"type";s:23:"text_summary_or_trimmed";s:8:"settings";a:0:{}s:6:"module";s:4:"text";s:6:"weight";i:11;}}s:8:"required";b:0;s:11:"description";s:0:"";}',
'deleted' => '0', 'deleted' => '0',
)) ))
->values(array( ->values(array(
...@@ -68,8 +68,8 @@ protected function getEntityCounts() { ...@@ -68,8 +68,8 @@ protected function getEntityCounts() {
'date_format' => 11, 'date_format' => 11,
'entity_form_display' => 15, 'entity_form_display' => 15,
'entity_form_mode' => 1, 'entity_form_mode' => 1,
'entity_view_display' => 22, 'entity_view_display' => 23,
'entity_view_mode' => 10, 'entity_view_mode' => 11,
'base_field_override' => 7, 'base_field_override' => 7,
]; ];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment