You are here

protected function RavenTestCase::ensureAutoloader in Raven: Sentry Integration 7.2

Same name and namespace in other branches
  1. 7.4 raven.test \RavenTestCase::ensureAutoloader()
  2. 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 64
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('Raven_Client')) {

    // This most likely means that we are running on DrupalCI, so set
    // up for that.
    variable_set('composer_autoloader', DRUPAL_ROOT . '/vendor/autoload.php');
  }
}