This is not the case when simpletest is enabled.

Hence the user_module throws tons of warning.

Comments

jzacsh’s picture

Status: Active » Needs review

Fixed in this in the 6.x-1.x and 7.x-1.x branches. Not sure where hook_permission is defined (if at all) for the 8.x-1.x branch (don't know anything about d8).

Any thoughts, anyone? See .module source here: http://drupalcode.org/project/qunit.git/blob/refs/heads/8.x-1.x:/qunit.m...

ericduran’s picture

This isn't a problem on 8, because it required the simpletest module which declares the permissions.

On 7 we could just make it required the Simpletest module and completely remove the the hook_permissions. or we could just return an empty array. Either works.