You are here

protected function SearchPageOverrideTest::setUp in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/search/tests/src/Functional/SearchPageOverrideTest.php \Drupal\Tests\search\Functional\SearchPageOverrideTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/search/tests/src/Functional/SearchPageOverrideTest.php, line 34

Class

SearchPageOverrideTest
Tests if the result page can be overridden.

Namespace

Drupal\Tests\search\Functional

Code

protected function setUp() : void {
  parent::setUp();

  // Log in as a user that can create and search content.
  $this->searchUser = $this
    ->drupalCreateUser([
    'search content',
    'administer search',
  ]);
  $this
    ->drupalLogin($this->searchUser);
}