function SearchKeywordsConditionsTest::setUp
Overrides BrowserTestBase::setUp
File
- 
              core/modules/ search/ tests/ src/ Functional/ SearchKeywordsConditionsTest.php, line 46 
Class
- SearchKeywordsConditionsTest
- Verify the search without keywords set and extra conditions.
Namespace
Drupal\Tests\search\FunctionalCode
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);
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
