Upgraded drupal core with security updates
[yaffs-website] / web / core / modules / views_ui / tests / src / Functional / OverrideDisplaysTest.php
similarity index 97%
rename from web/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php
rename to web/core/modules/views_ui/tests/src/Functional/OverrideDisplaysTest.php
index ba425424087952a4cecd66ad3beef7a85dbed633..24116d97ae2afc9ebc862b30bf77d82e1c628d66 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-namespace Drupal\views_ui\Tests;
+namespace Drupal\Tests\views_ui\Functional;
 
 /**
  * Tests that displays can be correctly overridden via the user interface.
@@ -9,8 +9,8 @@ namespace Drupal\views_ui\Tests;
  */
 class OverrideDisplaysTest extends UITestBase {
 
-  protected function setUp() {
-    parent::setUp();
+  protected function setUp($import_test_views = TRUE) {
+    parent::setUp($import_test_views);
 
     $this->drupalPlaceBlock('page_title_block');
   }
@@ -51,7 +51,7 @@ class OverrideDisplaysTest extends UITestBase {
 
     // Confirm that the view block is available in the block administration UI.
     $this->drupalGet('admin/structure/block/list/' . $this->config('system.theme')->get('default'));
-    $this->clickLinkPartialName('Place block');
+    $this->clickLink('Place block');
     $this->assertText($view['label']);
 
     // Place the block.
@@ -111,7 +111,7 @@ class OverrideDisplaysTest extends UITestBase {
 
     // Confirm that the block is available in the block administration UI.
     $this->drupalGet('admin/structure/block/list/' . $this->config('system.theme')->get('default'));
-    $this->clickLinkPartialName('Place block');
+    $this->clickLink('Place block');
     $this->assertText($view['label']);
 
     // Put the block into the first sidebar region, and make sure it will not