You are here

function MailTestCase::testPluggableFramework in SimpleTest 7

Assert that the pluggable mail system is functional.

File

tests/mail.test, line 33

Class

MailTestCase
Test the Drupal mailing system.

Code

function testPluggableFramework() {
  global $language;

  // Use MailTestCase for sending a message.
  $message = drupal_mail('simpletest', 'mail_test', 'testing@drupal.org', $language);

  // Assert whether the message was sent through the send function.
  $this
    ->assertEqual(self::$sent_message['to'], 'testing@drupal.org', t('Pluggable mail system is extendable.'));
}