Unverified Commit 05c0a71a authored by alexpott's avatar alexpott
Browse files

Issue #3222980 by bbrala: Unneeded assignment in ResourceTestBase::getEntityDuplicate

(cherry picked from commit 69772dbf)
parent 9bc2f9ee
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment