summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxjm2017-11-01 21:35:50 -0500
committerxjm2017-11-01 21:35:50 -0500
commit7c4d8e4765dd05f5fa31cc9bdd93e8f43ecebb0b (patch)
treeaeb578f677e155f067318d7ecb63d9b8ad633686
parent9debb7d597daf128aa51d4f9b705b7e35640aeb6 (diff)
Issue #2920322 by zaporylie: Unused local variable in TaxonomyTermViewTest
-rw-r--r--core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
index 5f70d90..f69c49c 100644
--- a/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
+++ b/core/modules/taxonomy/tests/src/Functional/Views/TaxonomyTermViewTest.php
@@ -92,8 +92,7 @@ class TaxonomyTermViewTest extends TaxonomyTestBase {
$this->assertText($node->label());
\Drupal::service('module_installer')->install(['language', 'content_translation']);
- $language = ConfigurableLanguage::createFromLangcode('ur');
- $language->save();
+ ConfigurableLanguage::createFromLangcode('ur')->save();
// Enable translation for the article content type and ensure the change is
// picked up.
\Drupal::service('content_translation.manager')->setEnabled('node', 'article', TRUE);