Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / tests / src / Functional / SearchMultilingualEntityTest.php
index 9b3a6ddc85c18e53d2299fc9be50a99d7bbfa52a..706a928deecb35022ac33eeb286429ea7874186a 100644 (file)
@@ -4,13 +4,14 @@ namespace Drupal\Tests\search\Functional;
 
 use Drupal\field\Entity\FieldStorageConfig;
 use Drupal\language\Entity\ConfigurableLanguage;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Tests entities with multilingual fields.
  *
  * @group search
  */
-class SearchMultilingualEntityTest extends SearchTestBase {
+class SearchMultilingualEntityTest extends BrowserTestBase {
 
   /**
    * List of searchable nodes.
@@ -26,11 +27,16 @@ class SearchMultilingualEntityTest extends SearchTestBase {
    */
   protected $plugin;
 
-  public static $modules = ['language', 'locale', 'comment'];
+  /**
+   * {@inheritdoc}
+   */
+  protected static $modules = ['language', 'locale', 'comment', 'node', 'search'];
 
   protected function setUp() {
     parent::setUp();
 
+    $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
+
     // Create a user who can administer search, do searches, see the status
     // report, and administer cron. Log in.
     $user = $this->drupalCreateUser(['administer search', 'search content', 'use advanced search', 'access content', 'access site reports', 'administer site configuration']);