function CoderUpgrade6xTest::testUpgrade6xDrupalMail in Coder 6.2
Same name and namespace in other branches
- 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xDrupalMail()
File
- tests/
coder_6x.test, line 174
Class
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);');
}