You are here

protected function MandrillTemplateTestCase::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_template/tests/mandrill_template.test, line 29
Test class and methods for the Mandrill Template module.

Class

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