diff core/modules/search/tests/src/Functional/SearchExactTest.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children af1871eacc83
line wrap: on
line diff
--- a/core/modules/search/tests/src/Functional/SearchExactTest.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/modules/search/tests/src/Functional/SearchExactTest.php	Thu Feb 28 13:21:36 2019 +0000
@@ -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);