protected function ContactLanguageTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contact/tests/src/Functional/ContactLanguageTest.php \Drupal\Tests\contact\Functional\ContactLanguageTest::setUp()
- 9 core/modules/contact/tests/src/Functional/ContactLanguageTest.php \Drupal\Tests\contact\Functional\ContactLanguageTest::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);
}