diff core/modules/search/tests/src/Functional/SearchNodePunctuationTest.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/SearchNodePunctuationTest.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/modules/search/tests/src/Functional/SearchNodePunctuationTest.php	Thu Feb 28 13:21:36 2019 +0000
@@ -2,12 +2,19 @@
 
 namespace Drupal\Tests\search\Functional;
 
+use Drupal\Tests\BrowserTestBase;
+
 /**
  * Tests search functionality with punctuation and HTML entities.
  *
  * @group search
  */
-class SearchNodePunctuationTest extends SearchTestBase {
+class SearchNodePunctuationTest extends BrowserTestBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  protected static $modules = ['node', 'search'];
 
   /**
    * A user with permission to use advanced search.
@@ -18,8 +25,10 @@
 
   protected function setUp() {
     parent::setUp();
+
+    $this->drupalCreateContentType(['type' => 'page', 'name' => 'Basic page']);
+
     node_access_rebuild();
-
     // Create a test user and log in.
     $this->testUser = $this->drupalCreateUser(['access content', 'search content', 'use advanced search', 'access user profiles']);
     $this->drupalLogin($this->testUser);