You are here

public function RequiredByRoleCallbackAlterTestCase::testDefaultCallback in Required by role 7

Test the default callback.

File

tests/required_by_role_test/RequiredByRoleCallbackAlterTestCase.test, line 27
Callback tests.

Class

RequiredByRoleCallbackAlterTestCase

Code

public function testDefaultCallback() {
  $result = _required_by_role_get_callback();
  $callback = '_required_by_role_roles_intersect';
  $message = "The callback function should be {$callback}";
  $this
    ->assertEqual($result, $callback, $message);
}