protected function LanguageSwitchingTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/language/tests/src/Functional/LanguageSwitchingTest.php \Drupal\Tests\language\Functional\LanguageSwitchingTest::setUp()
Overrides BrowserTestBase::setUp
File
- core/
modules/ language/ tests/ src/ Functional/ LanguageSwitchingTest.php, line 37
Class
- LanguageSwitchingTest
- Functional tests for the language switching feature.
Namespace
Drupal\Tests\language\FunctionalCode
protected function setUp() {
parent::setUp();
// Create and log in user.
$admin_user = $this
->drupalCreateUser([
'administer blocks',
'administer languages',
'access administration pages',
]);
$this
->drupalLogin($admin_user);
}