diff --git a/core/modules/views_ui/src/Tests/ViewsUITourTest.php b/core/modules/views_ui/src/Tests/ViewsUITourTest.php index bfb3e07..7030cac 100644 --- a/core/modules/views_ui/src/Tests/ViewsUITourTest.php +++ b/core/modules/views_ui/src/Tests/ViewsUITourTest.php @@ -55,7 +55,7 @@ public function testViewsUiTourTips() { * Tests views_ui tour tip availability in a different language. */ public function testViewsUiTourTipsTranslated() { - $ln = 'nl'; + $langcode = 'nl'; // Enable import of translations. By default this is disabled for automated // tests. @@ -64,11 +64,11 @@ public function testViewsUiTourTipsTranslated() { ->save(); // Add Dutch language programmatically. - ConfigurableLanguage::createFromLangcode($ln)->save(); + ConfigurableLanguage::createFromLangcode($langcode)->save(); // Import a .po file. $this->importPoFile($this->getPoFile(), array( - 'langcode' => $ln, - )); + 'langcode' => $langcode, + )); // Create a basic view that shows all content, with a page and a block // display. @@ -77,7 +77,7 @@ public function testViewsUiTourTipsTranslated() { $view['page[create]'] = 1; $view['page[path]'] = $this->randomMachineName(16); // Load the page in dutch. - $this->drupalPostForm($ln . '/admin/structure/views/add', $view, t('Save and edit')); + $this->drupalPostForm($langcode . '/admin/structure/views/add', $view, t('Save and edit')); $this->assertTourTips(); }