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