You are here

function CoderUpgrade6xTest::testUpgrade6xDrupalMail in Coder 6

Same name and namespace in other branches
  1. 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xDrupalMail()

File

tests/coder_6x.test, line 167

Class

CoderUpgrade6xTest

Code

function testUpgrade6xDrupalMail() {
  $this
    ->assertCoderFail('  drupal_mail($action, $to, $subject, $body, $from);');
  $this
    ->assertCoderFail('  drupal_mail(\'action_email\', $recipient, $subject, $body, $from);');
  $this
    ->assertCoderFail('  drupal_mail(\'action_email\', $account->mail, $subject, $body, $from);');
  $this
    ->assertCoderFail('  drupal_mail(\'action_email\', "foo@foo.com", $subject, $body, $from);');
  $this
    ->assertCoderPass('  drupal_mail(\'system\', "action_email", $recipient, $language, $params);');
}