function SearchPageTextTest::setUp
Same name in other branches
- 9 core/modules/search/tests/src/Functional/SearchPageTextTest.php \Drupal\Tests\search\Functional\SearchPageTextTest::setUp()
- 10 core/modules/search/tests/src/Functional/SearchPageTextTest.php \Drupal\Tests\search\Functional\SearchPageTextTest::setUp()
- 11.x core/modules/search/tests/src/Functional/SearchPageTextTest.php \Drupal\Tests\search\Functional\SearchPageTextTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ search/ tests/ src/ Functional/ SearchPageTextTest.php, line 36
Class
- SearchPageTextTest
- Tests the search help text and search page text.
Namespace
Drupal\Tests\search\FunctionalCode
protected function setUp() {
parent::setUp();
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
// Create user.
$this->searchingUser = $this->drupalCreateUser([
'search content',
'access user profiles',
'use advanced search',
]);
$this->drupalPlaceBlock('local_tasks_block');
$this->drupalPlaceBlock('page_title_block');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.