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.
protected function setUp() {
parent::setUp();
- node_access_rebuild();
+ $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);