You are here

function CoderReviewUpgrade6xTest::testUpgrade6xHooks in Coder 7

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

File

coder_review/tests/coder_review_6x.test, line 211

Class

CoderReviewUpgrade6xTest

Code

function testUpgrade6xHooks() {
  $this
    ->assertCoderReviewFail('  function mymodule_access($op, $node) {');
  $this
    ->assertCoderReviewPass('  function mymodule_access($op, $node, $account) {');
  $this
    ->assertCoderReviewFail('  function mymodule_help($section) {');
  $this
    ->assertCoderReviewPass('  function mymodule_help($section, $arg) {');
  $this
    ->assertCoderReviewFail('  function mymodule_mail_alter(&$mailkey, &$to, &$subject, &$body, &$from, &$headers) {');
  $this
    ->assertCoderReviewPass('  function mymodule_mail_alter(&$message) {');
  $this
    ->assertCoderReviewFail('  function mymodule_link_alter($node, &$links) {');
  $this
    ->assertCoderReviewPass('  function mymodule_link_alter(&$links, $node) {');
  $this
    ->assertCoderReviewFail('  function mymodule_profile_alter($account, &$fields) {');
  $this
    ->assertCoderReviewPass('  function mymodule_profile_alter(&$account) {');
}