Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / tests / src / Functional / SearchExactTest.php
index 04163918e540131599e5d6569c451dfc8cf69592..7faae5465684523a30897f12fedd2028ae994056 100644 (file)
@@ -2,16 +2,26 @@
 
 namespace Drupal\Tests\search\Functional;
 
+use Drupal\Tests\BrowserTestBase;
+
 /**
  * Tests that searching for a phrase gets the correct page count.
  *
  * @group search
  */
-class SearchExactTest extends SearchTestBase {
+class SearchExactTest extends BrowserTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static $modules = ['node', 'search'];
+
   /**
    * Tests that the correct number of pager links are found for both keywords and phrases.
    */
   public function testExactQuery() {
+    $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
+
     // Log in with sufficient privileges.
     $user = $this->drupalCreateUser(['create page content', 'search content']);
     $this->drupalLogin($user);