You are here

private function ForumAccessTestCase::testForumAccessSetPermissionsAuthenticatedRole in Forum Access 6

This function gets the permissions for the authenticated userrole from the database

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

File

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

Class

ForumAccessTestCase
This is the base class for forum access testing.

Code

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