Further Drupal 8.6.4 changes. Some core files were not committed before a commit...
[yaffs-website] / web / core / modules / views_ui / src / Tests / UITestBase.php
index 0b90e04d1e7715f8969ea772c7205b568754f589..752be6e339b4a94d626b4edd8b32d6d3de0f6198 100644 (file)
@@ -6,6 +6,9 @@ use Drupal\views\Tests\ViewTestBase;
 
 /**
  * Provides a base class for testing the Views UI.
+ *
+ * @deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.x.
+ *   Use \Drupal\Tests\views_ui\Functional\UITestBase.
  */
 abstract class UITestBase extends ViewTestBase {
 
@@ -33,8 +36,8 @@ abstract class UITestBase extends ViewTestBase {
   /**
    * {@inheritdoc}
    */
-  protected function setUp() {
-    parent::setUp();
+  protected function setUp($import_test_views = TRUE) {
+    parent::setUp($import_test_views);
 
     $this->enableViewsTestModule();
 
@@ -48,6 +51,8 @@ abstract class UITestBase extends ViewTestBase {
       'administer permissions',
     ]);
     $this->drupalLogin($this->fullAdminUser);
+
+    @trigger_error('\Drupal\views_ui\Tests\UITestBase is deprecated in Drupal 8.4.0 and will be removed before Drupal 9.0.x. Instead, use \Drupal\Tests\views_ui\Functional\UITestBase', E_USER_DEPRECATED);
   }
 
   /**