Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / tests / src / Functional / SearchDateIntervalTest.php
index 82769139214c5c08a3593998373cacd6e25134d8..46edc3bb081f23385702b673e6d6d79248e00443 100644 (file)
@@ -3,24 +3,25 @@
 namespace Drupal\Tests\search\Functional;
 
 use Drupal\language\Entity\ConfigurableLanguage;
+use Drupal\Tests\BrowserTestBase;
 
 /**
  * Tests searching with date filters that exclude some translations.
  *
  * @group search
  */
-class SearchDateIntervalTest extends SearchTestBase {
+class SearchDateIntervalTest extends BrowserTestBase {
 
   /**
-   * Modules to enable.
-   *
-   * @var string[]
+   * {@inheritdoc}
    */
-  public static $modules = ['language', 'search_date_query_alter'];
+  protected static $modules = ['language', 'search_date_query_alter', 'node', 'search'];
 
   protected function setUp() {
     parent::setUp();
 
+    $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
+
     // Create and log in user.
     $test_user = $this->drupalCreateUser(['access content', 'search content', 'use advanced search', 'administer nodes', 'administer languages', 'access administration pages', 'administer site configuration']);
     $this->drupalLogin($test_user);