protected function SearchPageOverrideTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 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\FunctionalCode
protected function setUp() {
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);
}