Verified Commit 2760d9ba authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3331900 by noorulshameera, anmolgoyal74: Remove unused variable...

Issue #3331900 by noorulshameera, anmolgoyal74: Remove unused variable $translation from BulkFormTest

(cherry picked from commit 121e42f8)
parent 8e78c937
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.