Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
05c0a71a
Unverified
Commit
05c0a71a
authored
Jul 10, 2021
by
Alex Pott
Browse files
Issue
#3222980
by bbrala: Unneeded assignment in ResourceTestBase::getEntityDuplicate
(cherry picked from commit
69772dbf
)
parent
9bc2f9ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php
View file @
05c0a71a
...
...
@@ -428,7 +428,6 @@ protected function getEntityDuplicate(EntityInterface $original, $key) {
}
if
(
$duplicate
instanceof
ConfigEntityInterface
&&
$id_key
=
$duplicate
->
getEntityType
()
->
getKey
(
'id'
))
{
$id
=
$original
->
id
();
$id_key
=
$duplicate
->
getEntityType
()
->
getKey
(
'id'
);
$duplicate
->
set
(
$id_key
,
$id
.
'_'
.
$key
);
}
return
$duplicate
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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