You are here

protected function ContactEmailsTestBase::createUserAndLogin in Contact Emails 8

Creates the admin user and logs in.

Throws

\Drupal\Core\Entity\EntityStorageException

1 call to ContactEmailsTestBase::createUserAndLogin()
ContactEmailsTestBase::setUp in src/ContactEmailsTestBase.php

File

src/ContactEmailsTestBase.php, line 41

Class

ContactEmailsTestBase
Base class for contact emails tests.

Namespace

Drupal\contact_emails

Code

protected function createUserAndLogin() {

  // Create the user.
  $this->adminUser = $this
    ->createUser([], NULL, TRUE);
  $this
    ->drupalLogin($this->adminUser);
}