You are here

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

Same name and namespace in other branches
  1. 7.4 raven.test \RavenTestCase::setUp()
  2. 7 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 41
Tests for Raven.module.

Class

RavenTestCase
Tests logging messages to the database.

Code

public function setUp() {
  $modules = array(
    'libraries',
    'xautoload',
    'raven',
    'raven_test',
  );
  if (file_exists(DRUPAL_ROOT . '/../vendor/autoload.php') || file_exists(DRUPAL_ROOT . '/vendor/autoload.php')) {
    $modules[] = 'composer_autoloader';
  }
  parent::setUp($modules);
  $this
    ->ensureAutoloader();
  $this->adminUser = $this
    ->drupalCreateUser(array(
    'administer site configuration',
    'access administration pages',
    'access site reports',
  ));
  $this->anyUser = $this
    ->drupalCreateUser(array());
}