Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / tests / src / Functional / SearchSetLocaleTest.php
index f6923f4320b011f72433b51eee184305de92fab0..bca3421169fdb4767ce9a44936ff5b0c373c99c9 100644 (file)
@@ -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 @@ class SearchSetLocaleTest extends SearchTestBase {
   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.