function CoderReviewUpgrade6xTest::testUpgrade6xDrupalMail in Coder 7
Same name and namespace in other branches
- 7.2 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xDrupalMail()
File
- coder_review/
tests/ coder_review_6x.test, line 173
Class
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);');
}