You are here

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

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

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

./multiple_email.test, line 261
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 site configuration',
  ));
  $this->emailuser = $this
    ->drupalCreateUser(array(
    'access content',
  ));
  $this->basicuser = $this
    ->drupalCreateUser();

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