Loading core/modules/node/tests/src/Functional/Views/BulkFormTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -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(); Loading @@ -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. Loading Loading
core/modules/node/tests/src/Functional/Views/BulkFormTest.php +2 −2 Original line number Diff line number Diff line Loading @@ -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(); Loading @@ -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. Loading