You are here

protected function MandrillReportsTestCase::setUp in Mandrill 7.2

Pre-test setup function.

Enables dependencies. Sets the mandrill_api_key variable to the test key.

Overrides DrupalWebTestCase::setUp

File

modules/mandrill_reports/tests/mandrill_reports.test, line 29
Test class and methods for the Mandrill Reports module.

Class

MandrillReportsTestCase
@file Test class and methods for the Mandrill Reports module.

Code

protected function setUp() {

  // Use a profile that contains required modules:
  $prof = drupal_get_profile();
  $this->profile = $prof;

  // Enable modules required for the test.
  $enabled_modules = array(
    'libraries',
    'mandrill',
    'mandrill_reports',
    'entity',
  );
  parent::setUp($enabled_modules);
  variable_set('mandrill_api_classname', 'DrupalMandrillTest');
  variable_set('mandrill_api_key', 'MANDRILL_TEST_API_KEY');
}