You are here

public function RerouteEmailTestCase::setUp in Reroute Email 7

Enable modules and create user with specific permissions.

Overrides DrupalWebTestCase::setUp

3 calls to RerouteEmailTestCase::setUp()
RerouteEmailContactTestCase::setUp in ./reroute_email.test
Enable modules and create user with specific permissions.
RerouteEmailDefaultAddressTestCase::setUp in ./reroute_email.test
Enable modules and create user with specific permissions.
RerouteEmailSpecialTestCase::setUp in ./reroute_email.test
Enable modules and create user with specific permissions.
3 methods override RerouteEmailTestCase::setUp()
RerouteEmailContactTestCase::setUp in ./reroute_email.test
Enable modules and create user with specific permissions.
RerouteEmailDefaultAddressTestCase::setUp in ./reroute_email.test
Enable modules and create user with specific permissions.
RerouteEmailSpecialTestCase::setUp in ./reroute_email.test
Enable modules and create user with specific permissions.

File

./reroute_email.test, line 53
Test the Reroute Email module.

Class

RerouteEmailTestCase
Provides common functionality for the Reroute Email test classes.

Code

public function setUp() {

  // Merge inherited classes modules, see FieldUITestCase for an example.
  $modules = func_get_args();
  if (isset($modules[0]) && is_array($modules[0])) {
    $modules = $modules[0];
  }
  $modules[] = 'reroute_email';
  parent::setUp($modules);

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