function SearchPreprocessLangcodeTest::setUp
Same name in other branches
- 9 core/modules/search/tests/src/Functional/SearchPreprocessLangcodeTest.php \Drupal\Tests\search\Functional\SearchPreprocessLangcodeTest::setUp()
- 8.9.x core/modules/search/tests/src/Functional/SearchPreprocessLangcodeTest.php \Drupal\Tests\search\Functional\SearchPreprocessLangcodeTest::setUp()
- 10 core/modules/search/tests/src/Functional/SearchPreprocessLangcodeTest.php \Drupal\Tests\search\Functional\SearchPreprocessLangcodeTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ search/ tests/ src/ Functional/ SearchPreprocessLangcodeTest.php, line 36
Class
- SearchPreprocessLangcodeTest
- Tests that the search preprocessing uses the correct language code.
Namespace
Drupal\Tests\search\FunctionalCode
protected function setUp() : void {
parent::setUp();
$this->drupalCreateContentType([
'type' => 'page',
'name' => 'Basic page',
]);
$web_user = $this->drupalCreateUser([
'create page content',
'edit own page content',
'search content',
'use advanced search',
]);
$this->drupalLogin($web_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.