From 121e42f8b43891a73d05d846768efc2ff31442b3 Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Mon, 9 Jan 2023 11:53:07 +0000 Subject: [PATCH] Issue #3331900 by noorulshameera, anmolgoyal74: Remove unused variable $translation from BulkFormTest --- core/modules/node/tests/src/Functional/Views/BulkFormTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php index cdbd7b63c701..c4eada729ac7 100644 --- a/core/modules/node/tests/src/Functional/Views/BulkFormTest.php +++ b/core/modules/node/tests/src/Functional/Views/BulkFormTest.php @@ -68,7 +68,7 @@ protected function setUp($import_test_views = TRUE, $modules = ['node_test_views foreach ($langcodes as $langcode) { if (!$node->hasTranslation($langcode)) { $title = $this->randomMachineName() . ' [' . $node->id() . ':' . $langcode . ']'; - $translation = $node->addTranslation($langcode, ['title' => $title, 'promote' => FALSE]); + $node->addTranslation($langcode, ['title' => $title, 'promote' => FALSE]); } } $node->save(); @@ -78,7 +78,7 @@ protected function setUp($import_test_views = TRUE, $modules = ['node_test_views $node = $this->nodes[2]; $langcode = 'en'; $title = $this->randomMachineName() . ' [' . $node->id() . ':' . $langcode . ']'; - $translation = $node->addTranslation($langcode, ['title' => $title]); + $node->addTranslation($langcode, ['title' => $title]); $node->save(); // Check that all created translations are selected by the test view. -- GitLab