Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
220
Merge Requests
220
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
b83e2d78
Commit
b83e2d78
authored
Jul 20, 2016
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2706187
by Jo Fitzgerald: Custom view modes not migrating from d7 to d8
parent
d317f6b3
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
4 deletions
+10
-4
core/modules/field/migration_templates/d7_view_modes.yml
core/modules/field/migration_templates/d7_view_modes.yml
+1
-0
core/modules/field/tests/src/Kernel/Migrate/d7/MigrateViewModesTest.php
...ield/tests/src/Kernel/Migrate/d7/MigrateViewModesTest.php
+1
-0
core/modules/field/tests/src/Unit/Plugin/migrate/source/d7/ViewModeTest.php
.../tests/src/Unit/Plugin/migrate/source/d7/ViewModeTest.php
+5
-1
core/modules/migrate_drupal/tests/fixtures/drupal7.php
core/modules/migrate_drupal/tests/fixtures/drupal7.php
+1
-1
core/modules/migrate_drupal_ui/src/Tests/d7/MigrateUpgrade7Test.php
...es/migrate_drupal_ui/src/Tests/d7/MigrateUpgrade7Test.php
+2
-2
No files found.
core/modules/field/migration_templates/d7_view_modes.yml
View file @
b83e2d78
...
...
@@ -14,6 +14,7 @@ process:
label
:
plugin
:
static_map
source
:
view_mode
bypass
:
true
map
:
search_index
:
"
Search
index"
search_result
:
"
Search
result"
...
...
core/modules/field/tests/src/Kernel/Migrate/d7/MigrateViewModesTest.php
View file @
b83e2d78
...
...
@@ -52,6 +52,7 @@ public function testMigration() {
$this
->
assertEntity
(
'comment.full'
,
'Full'
,
'comment'
);
$this
->
assertEntity
(
'node.teaser'
,
'Teaser'
,
'node'
);
$this
->
assertEntity
(
'node.full'
,
'Full'
,
'node'
);
$this
->
assertEntity
(
'node.custom'
,
'custom'
,
'node'
);
$this
->
assertEntity
(
'user.full'
,
'Full'
,
'user'
);
}
...
...
core/modules/field/tests/src/Unit/Plugin/migrate/source/d7/ViewModeTest.php
View file @
b83e2d78
...
...
@@ -29,6 +29,10 @@ class ViewModeTest extends MigrateSqlSourceTestCase {
'entity_type'
=>
'node'
,
'view_mode'
=>
'teaser'
,
),
array
(
'entity_type'
=>
'node'
,
'view_mode'
=>
'custom'
,
),
array
(
'entity_type'
=>
'user'
,
'view_mode'
=>
'default'
,
...
...
@@ -50,7 +54,7 @@ protected function setUp() {
'field_name'
=>
'body'
,
'entity_type'
=>
'node'
,
'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'
,
),
array
(
...
...
core/modules/migrate_drupal/tests/fixtures/drupal7.php
View file @
b83e2d78
...
...
@@ -3474,7 +3474,7 @@
'field_name' => 'body',
'entity_type' => 'node',
'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',
))
->values(array(
core/modules/migrate_drupal_ui/src/Tests/d7/MigrateUpgrade7Test.php
View file @
b83e2d78
...
...
@@ -68,8 +68,8 @@ protected function getEntityCounts() {
'date_format'
=>
11
,
'entity_form_display'
=>
15
,
'entity_form_mode'
=>
1
,
'entity_view_display'
=>
2
2
,
'entity_view_mode'
=>
1
0
,
'entity_view_display'
=>
2
3
,
'entity_view_mode'
=>
1
1
,
'base_field_override'
=>
7
,
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment