diff core/modules/search/tests/src/Functional/SearchSetLocaleTest.php @ 4:a9cd425dd02b

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:11:55 +0000
parents c75dbcec494b
children
line wrap: on
line diff
--- a/core/modules/search/tests/src/Functional/SearchSetLocaleTest.php	Thu Feb 28 11:14:44 2019 +0000
+++ b/core/modules/search/tests/src/Functional/SearchSetLocaleTest.php	Thu Feb 28 13:11:55 2019 +0000
@@ -2,19 +2,19 @@
 
 namespace Drupal\Tests\search\Functional;
 
+use Drupal\Tests\BrowserTestBase;
+
 /**
  * Tests that search works with numeric locale settings.
  *
  * @group search
  */
-class SearchSetLocaleTest extends SearchTestBase {
+class SearchSetLocaleTest extends BrowserTestBase {
 
   /**
-   * Modules to enable.
-   *
-   * @var array
+   * {@inheritdoc}
    */
-  public static $modules = ['comment'];
+  protected static $modules = ['comment', 'node', 'search'];
 
   /**
    * A node search plugin instance.
@@ -26,6 +26,8 @@
   protected function setUp() {
     parent::setUp();
 
+    $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
+
     // Create a plugin instance.
     $this->nodeSearchPlugin = $this->container->get('plugin.manager.search')->createInstance('node_search');
     // Create a node with a very simple body.