You are here

function CoderReviewUpgrade6xTest::testUpgrade6xDrupalMail in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xDrupalMail()

???

File

coder_review/tests/coder_review_6x.test, line 214

Class

CoderReviewUpgrade6xTest
???

Code

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