You are here

function CoderUpgrade6xTest::testUpgrade6xHooks in Coder 6

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

File

tests/coder_6x.test, line 205

Class

CoderUpgrade6xTest

Code

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