You are here

protected function RerouteEmailTestBase::setUp in Reroute Email 8

Same name and namespace in other branches
  1. 2.x tests/src/Functional/RerouteEmailTestBase.php \Drupal\Tests\reroute_email\Functional\RerouteEmailTestBase::setUp()

Overrides BrowserTestBase::setUp

3 calls to RerouteEmailTestBase::setUp()
ContactTest::setUp in tests/src/Functional/ContactTest.php
Enable modules and create user with specific permissions.
DefaultAddressesTest::setUp in tests/src/Functional/DefaultAddressesTest.php
Enable modules and create user with specific permissions.
UnusualMessageFieldsTest::setUp in tests/src/Functional/UnusualMessageFieldsTest.php
Enable modules and create user with specific permissions.
3 methods override RerouteEmailTestBase::setUp()
ContactTest::setUp in tests/src/Functional/ContactTest.php
Enable modules and create user with specific permissions.
DefaultAddressesTest::setUp in tests/src/Functional/DefaultAddressesTest.php
Enable modules and create user with specific permissions.
UnusualMessageFieldsTest::setUp in tests/src/Functional/UnusualMessageFieldsTest.php
Enable modules and create user with specific permissions.

File

tests/src/Functional/RerouteEmailTestBase.php, line 84

Class

RerouteEmailTestBase
Base test class for Reroute Email test cases.

Namespace

Drupal\Tests\reroute_email\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->rerouteConfig = $this
    ->config('reroute_email.settings');

  // Authenticate test user.
  $this->adminUser = $this
    ->drupalCreateUser($this->permissions);
  $this
    ->drupalLogin($this->adminUser);
}