public function RavenTestCase::setUp in Raven: Sentry Integration 7.4
Same name and namespace in other branches
- 7 raven.test \RavenTestCase::setUp()
- 7.2 raven.test \RavenTestCase::setUp()
- 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([]);
}