Skip to content

Instantly share code, notes, and snippets.

@sprice
Created August 31, 2010 01:57
Show Gist options
  • Save sprice/558403 to your computer and use it in GitHub Desktop.
Save sprice/558403 to your computer and use it in GitHub Desktop.
diff --git atrium_test/atrium_web_test_case.php atrium_test/atrium_web_test_case.php
index 8c04bc3..09987d7 100644
--- atrium_test/atrium_web_test_case.php
+++ atrium_test/atrium_web_test_case.php
@@ -108,6 +108,9 @@ class AtriumWebTestCase extends DrupalWebTestCase {
variable_set('install_task', 'profile-finished');
variable_set('clean_url', $clean_url_original);
variable_set('site_mail', 'simpletest@example.com');
+ // Use the test mail class instead of the default mail handler class.
+ // variable_set('mail_sending_system', array('default-system' => 'TestingMailSystem'));
+ variable_set('smtp_library', drupal_get_path('module', 'simpletest') . '/simpletest.mail.inc');
// Use temporary files directory with the same prefix as database.
$this->originalFileDirectory = file_directory_path();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment