You are here

protected function SearchBlockTest::setUp in Drupal 9

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

Overrides BrowserTestBase::setUp

File

core/modules/search/tests/src/Functional/SearchBlockTest.php, line 35

Class

SearchBlockTest
Tests if the search form block is available.

Namespace

Drupal\Tests\search\Functional

Code

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

  // Create and log in user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer blocks',
    'search content',
    'access user profiles',
    'access content',
  ]);
  $this
    ->drupalLogin($this->adminUser);
}