protected function RavenTestCase::ensureAutoloader in Raven: Sentry Integration 7.4
Same name and namespace in other branches
- 7.2 raven.test \RavenTestCase::ensureAutoloader()
- 7.3 raven.test \RavenTestCase::ensureAutoloader()
Ensures that the Composer autoloader is set up properly.
1 call to RavenTestCase::ensureAutoloader()
- RavenTestCase::setUp in ./raven.test 
- Enable modules and create users with specific permissions.
File
- ./raven.test, line 62 
- Tests for Raven.module.
Class
- RavenTestCase
- Tests logging messages to the database.
Code
protected function ensureAutoloader() {
  // Test to see if one of the classes that the autoloader should know
  // about has been defined.
  if (!class_exists(SentrySdk::class)) {
    // This most likely means that we are running on DrupalCI, so set
    // up for that.
    variable_set('composer_autoloader', DRUPAL_ROOT . '/vendor/autoload.php');
  }
}