Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
abbdab75
Commit
abbdab75
authored
Nov 30, 2020
by
catch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#3138795
by quietone, sja112: d6_term_node_revision references non-existent migration
(cherry picked from commit
9ec469a0
)
parent
0ca0f2c7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
core/misc/cspell/dictionary.txt
core/misc/cspell/dictionary.txt
+0
-1
core/modules/taxonomy/migrations/d6_term_node_revision.yml
core/modules/taxonomy/migrations/d6_term_node_revision.yml
+1
-1
core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php
...y/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php
+12
-0
No files found.
core/misc/cspell/dictionary.txt
View file @
abbdab75
...
...
@@ -312,7 +312,6 @@ contrained
contribs
controlgroup
coord
copmplete
corefake
coretest
corge
...
...
core/modules/taxonomy/migrations/d6_term_node_revision.yml
View file @
abbdab75
...
...
@@ -12,7 +12,7 @@ process:
-
plugin
:
migration_lookup
migration
:
-
d6_node_co
p
mplete
-
d6_node_complete
-
d6_node_revision
source
:
vid
-
...
...
core/modules/taxonomy/tests/src/Kernel/Migrate/d6/MigrateTermNodeComplete.php
View file @
abbdab75
...
...
@@ -64,4 +64,16 @@ public function testTermNode() {
$this
->
assertSame
(
'3'
,
$node
->
field_vocabulary_2_i_1_
[
1
]
->
target_id
);
}
/**
* Tests the Drupal 6 term-node association to Drupal 8 node revisions.
*/
public
function
testTermNodeRevision
()
{
$this
->
executeMigrations
([
'd6_term_node_revision'
]);
$node
=
\
Drupal
::
entityTypeManager
()
->
getStorage
(
'node'
)
->
loadRevision
(
2001
);
$this
->
assertCount
(
2
,
$node
->
field_vocabulary_3_i_2_
);
$this
->
assertSame
(
'4'
,
$node
->
field_vocabulary_3_i_2_
[
0
]
->
target_id
);
$this
->
assertSame
(
'5'
,
$node
->
field_vocabulary_3_i_2_
[
1
]
->
target_id
);
}
}
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