You are here

function MultipleEmailLateInstallTestCase::setUp in Multiple E-mail Addresses 7

Same name and namespace in other branches
  1. 6 multiple_email.test \MultipleEmailLateInstallTestCase::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

./multiple_email.test, line 293
Tests for the Multiple E-mail module

Class

MultipleEmailLateInstallTestCase

Code

function setUp() {

  // Set up basic Drupal install
  parent::setUp();

  // Create a user allowed to have multiple emails.
  $this->adminuser = $this
    ->drupalCreateUser(array(
    'administer users',
    'administer permissions',
    'administer modules',
    'administer site configuration',
  ));
  $this->emailuser = $this
    ->drupalCreateUser(array(
    'access content',
  ));
  $this->basicuser = $this
    ->drupalCreateUser();

  // Log in as adminuser
  $this
    ->drupalLogin($this->adminuser);
}