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
8fbc6dae
Commit
8fbc6dae
authored
Aug 24, 2015
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2555089
by phenaproxima, mikeryan: d7_filter_format migration mishandles format IDs
parent
4ebc6688
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
10 deletions
+7
-10
core/modules/filter/migration_templates/d7_filter_format.yml
core/modules/filter/migration_templates/d7_filter_format.yml
+1
-9
core/modules/filter/src/Tests/Migrate/d7/MigrateFilterFormatTest.php
...s/filter/src/Tests/Migrate/d7/MigrateFilterFormatTest.php
+6
-1
No files found.
core/modules/filter/migration_templates/d7_filter_format.yml
View file @
8fbc6dae
...
...
@@ -5,15 +5,7 @@ migration_tags:
source
:
plugin
:
d7_filter_format
process
:
format
:
-
plugin
:
machine_name
source
:
name
-
plugin
:
dedupe_entity
entity_type
:
filter_format
field
:
format
length
:
32
format
:
format
name
:
name
cache
:
cache
filters
:
filters
...
...
core/modules/filter/src/Tests/Migrate/d7/MigrateFilterFormatTest.php
View file @
8fbc6dae
...
...
@@ -28,6 +28,7 @@ class MigrateFilterFormatTest extends MigrateDrupal7TestBase {
*/
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
installConfig
(
static
::
$modules
);
$this
->
executeMigration
(
'd7_filter_format'
);
}
...
...
@@ -57,7 +58,11 @@ public function testFilterFormat() {
$this
->
assertEntity
(
'custom_text_format'
,
'Custom Text format'
,
[
'filter_autop'
,
'filter_html'
]);
$this
->
assertEntity
(
'filtered_html'
,
'Filtered HTML'
,
[
'filter_autop'
,
'filter_html'
,
'filter_htmlcorrector'
,
'filter_url'
]);
$this
->
assertEntity
(
'full_html'
,
'Full HTML'
,
[
'filter_autop'
,
'filter_htmlcorrector'
,
'filter_url'
]);
$this
->
assertEntity
(
'plain_text'
,
'Plain text'
,
[
'filter_autop'
,
'filter_html_escape'
,
'filter_url'
]);
$this
->
assertEntity
(
'plain_text'
,
'Plain text'
,
[
'filter_html_escape'
,
'filter_url'
,
'filter_autop'
]);
// This assertion covers issue #2555089. Drupal 7 formats are identified
// by machine names, so migrated formats should be merged into existing
// ones.
$this
->
assertNull
(
FilterFormat
::
load
(
'plain_text1'
));
// Ensure that filter-specific settings were migrated.
/** @var \Drupal\filter\FilterFormatInterface $format */
...
...
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