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