You are here

protected function SearchKeywordsConditionsTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/search/tests/src/Functional/SearchKeywordsConditionsTest.php, line 41

Class

SearchKeywordsConditionsTest
Verify the search without keywords set and extra conditions.

Namespace

Drupal\Tests\search\Functional

Code

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

  // Create searching user.
  $this->searchingUser = $this
    ->drupalCreateUser([
    'search content',
    'access content',
    'access comments',
    'skip comment approval',
  ]);

  // Log in with sufficient privileges.
  $this
    ->drupalLogin($this->searchingUser);
}