protected function MandrillHooksTestCase::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
- tests/
mandrill_hooks.test, line 29 - Test class and methods for the Mandrill Test module.
Class
- MandrillHooksTestCase
- @file Test class and methods for the Mandrill Test 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_test',
'entity',
);
parent::setUp($enabled_modules);
variable_set('mandrill_api_classname', 'DrupalMandrillTest');
variable_set('mandrill_api_key', 'MANDRILL_TEST_API_KEY');
}