You are here

public function MaillogTestCase::testSetup in Maillog / Mail Developer 7

Confirm that SimpleTest has taken over the 'mail_system' variable.

File

tests/MaillogTestCase.test, line 49
Unit-ish tests for the Maillog module.

Class

MaillogTestCase
All unit tests for the module.

Code

public function testSetup() {
  $enabled = variable_get('mail_system', array());
  $should_be = array(
    'default-system' => 'MaillogMailSystem',
  );
  $this
    ->assertEqual($enabled, $should_be, 'Maillog is controlling mail delivery.');
  $delivery = variable_get('maillog_send', FALSE);
  $this
    ->assertEqual($delivery, FALSE, 'Email delivery is disabled.');
  $logging = variable_get('maillog_log', TRUE);
  $this
    ->assertEqual($logging, TRUE, 'Email delivery is being logged.');
}