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