You are here

protected function ContactLanguageTest::setUp in Drupal 8

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

Code

protected function setUp() {
  parent::setUp();

  // Create and log in administrative user.
  $admin_user = $this
    ->drupalCreateUser([
    'access site-wide contact form',
    'administer languages',
  ]);
  $this
    ->drupalLogin($admin_user);
}