You are here

public function RavenTestCase::setUp in Raven: Sentry Integration 7.4

Same name and namespace in other branches
  1. 7 raven.test \RavenTestCase::setUp()
  2. 7.2 raven.test \RavenTestCase::setUp()
  3. 7.3 raven.test \RavenTestCase::setUp()

Enable modules and create users with specific permissions.

Overrides DrupalWebTestCase::setUp

File

./raven.test, line 43
Tests for Raven.module.

Class

RavenTestCase
Tests logging messages to the database.

Code

public function setUp() {
  $modules = [
    'composer_autoloader',
    'raven',
    'raven_test',
  ];
  parent::setUp($modules);
  $this
    ->ensureAutoloader();
  $this->adminUser = $this
    ->drupalCreateUser([
    'administer site configuration',
    'access administration pages',
    'access site reports',
  ]);
  $this->anyUser = $this
    ->drupalCreateUser([]);
}