diff --git a/core/modules/views_ui/src/Tests/ViewEditTest.php b/core/modules/views_ui/src/Tests/ViewEditTest.php index 80e9ee3..1dd7e0e 100644 --- a/core/modules/views_ui/src/Tests/ViewEditTest.php +++ b/core/modules/views_ui/src/Tests/ViewEditTest.php @@ -102,6 +102,7 @@ public function testEditFormLanguageOptions() { $this->assertResponse(200); $langcode_url = 'admin/structure/views/nojs/display/' . $view_name . '/' . $display . '/field_langcode'; $this->assertNoLinkByHref($langcode_url); + $this->assertNoLink(t('Language selected for !type', array('!type' => t('Content')))); } // Make the site multilingual and test the options again. @@ -115,8 +116,14 @@ public function testEditFormLanguageOptions() { $this->drupalGet('admin/structure/views/view/' . $view_name); $this->assertResponse(200); $langcode_url = 'admin/structure/views/nojs/display/' . $view_name . '/' . $display . '/field_langcode'; - $this->assertLinkByHref($langcode_url); - $this->assertLink(t('Language selected for !type', array('!type' => t('Content')))); + if ($view_name == 'test_view') { + $this->assertNoLinkByHref($langcode_url); + $this->assertNoLink(t('Language selected for !type', array('!type' => t('Content')))); + } + else { + $this->assertLinkByHref($langcode_url); + $this->assertLink(t('Language selected for !type', array('!type' => t('Content')))); + } $this->drupalGet($langcode_url); $this->assertResponse(200);