You are here

protected function UserTest::setUp in Multiple E-mail Addresses 2.x

File

src/Tests/UserTest.php, line 27
Definition of Drupal\multiple_email\Tests\UserTest.

Class

UserTest
Test basic user registration with 'use multiple email' permissions and its interactions with the module.

Namespace

Drupal\multiple_email\Tests

Code

protected function setUp() {

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

  // Create a user allowed to have multiple emails.
  $this->user = $this
    ->drupalCreateUser(array(
    'use multiple emails',
  ));
  $this
    ->drupalLogin($this->user);
}