function ContactLanguageTest::setUp
Same name in other branches
- 8.9.x core/modules/contact/tests/src/Functional/ContactLanguageTest.php \Drupal\Tests\contact\Functional\ContactLanguageTest::setUp()
- 10 core/modules/contact/tests/src/Functional/ContactLanguageTest.php \Drupal\Tests\contact\Functional\ContactLanguageTest::setUp()
- 11.x core/modules/contact/tests/src/Functional/ContactLanguageTest.php \Drupal\Tests\contact\Functional\ContactLanguageTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
modules/ contact/ tests/ src/ Functional/ ContactLanguageTest.php, line 37
Class
- ContactLanguageTest
- Tests contact messages with language module.
Namespace
Drupal\Tests\contact\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create and log in administrative user.
$admin_user = $this->drupalCreateUser([
'access site-wide contact form',
'administer languages',
]);
$this->drupalLogin($admin_user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.