diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-01 17:40:28 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-09-01 17:40:28 +0000 |
commit | c4a548f64d3c941a36edd03903ba388c6c32c1ae (patch) | |
tree | ed657e92717c685ce0a932492869ce8ded87e75e /modules/simpletest | |
parent | 5bd9dcef6000760c11b649cc6096b4b0352162a1 (diff) | |
download | brdo-c4a548f64d3c941a36edd03903ba388c6c32c1ae.tar.gz brdo-c4a548f64d3c941a36edd03903ba388c6c32c1ae.tar.bz2 |
#331180 follow-up by pwolanin and mfb: Fix sending of mail.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/simpletest.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/simpletest/simpletest.test b/modules/simpletest/simpletest.test index 8975957c0..9d14abee7 100644 --- a/modules/simpletest/simpletest.test +++ b/modules/simpletest/simpletest.test @@ -302,7 +302,7 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase { $this->assertEqual(count($captured_emails), 0, t('The captured e-mails queue is empty.'), t('E-mail')); // Send the e-mail. - $response = drupal_mail_send($message); + $response = drupal_mail_sending_system('simpletest', 'drupal_mail_test')->mail($message); // Ensure that there is one e-mail in the captured e-mails array. $captured_emails = $this->drupalGetMails(); @@ -323,7 +323,7 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase { 'to' => $this->randomName(32) . '@example.com', 'body' => $this->randomString(512), ); - drupal_mail_send($message); + drupal_mail_sending_system('drupal_mail_test', $index)->mail($message); } // There should now be 6 e-mails captured. @@ -340,7 +340,7 @@ class SimpleTestMailCaptureTestCase extends DrupalWebTestCase { // Send the last e-mail again, so we can confirm that the drupalGetMails-filter // correctly returns all e-mails with a given property/value. - drupal_mail_send($message); + drupal_mail_sending_system('drupal_mail_test', $index)->mail($message); $captured_emails = $this->drupalGetMails(array('id' => 'drupal_mail_test_4')); $this->assertEqual(count($captured_emails), 2, t('All e-mails with the same id are returned when filtering by id.'), t('E-mail')); } |