You are here

protected function MandrillActivityTestCase::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_activity/tests/mandrill_activity.test, line 29
Test class and methods for the Mandrill Activity module.

Class

MandrillActivityTestCase
@file Test class and methods for the Mandrill Activity 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_activity',
    'entity',
  );
  parent::setUp($enabled_modules);
  variable_set('mandrill_api_classname', 'DrupalMandrillTest');
  variable_set('mandrill_api_key', 'MANDRILL_TEST_API_KEY');
}