You are here

private function ForumAccessTestCase::testForumAccessSetPermissionsAnonymousRole in Forum Access 6

This function sets the permissions for the anonymous userrole in the database

1 call to ForumAccessTestCase::testForumAccessSetPermissionsAnonymousRole()
ForumAccessTestCase::testForumAccessRun in ./forum_access.test
The main function which is used to start testing a specific forum configuration.

File

./forum_access.test, line 1306
Test file for forum_access.module.

Class

ForumAccessTestCase
This is the base class for forum access testing.

Code

private function testForumAccessSetPermissionsAnonymousRole($permissions = array()) {
  if ($this
    ->checkPermissions($permissions)) {
    $this->testForumAccessPermissionsAnonymous = $permissions;
    db_query("UPDATE {permission} SET perm = '%s' WHERE rid = %d", implode(', ', $permissions), DRUPAL_ANONYMOUS_RID);
  }
}