You are here

public function UserProtectPermissionsWebTest::setUp in User protect 7

Overrides DrupalWebTestCase::setUp().

Overrides UserProtectWebTestBase::setUp

File

tests/UserProtectPermissionsWebTest.test, line 37
Contains UserProtectPermissionsWebTest.

Class

UserProtectPermissionsWebTest
Tests permissions.

Code

public function setUp($modules = array()) {
  parent::setUp($modules);

  // Revoke default permissions on the authenticated user role that are
  // installed by the userprotect module.
  // @see userprotect_install().
  $permissions = array(
    'change own e-mail',
    'change own password',
    'change own openid',
    'edit own account',
  );
  user_role_revoke_permissions(DRUPAL_AUTHENTICATED_RID, $permissions);
  drupal_static_reset('checkPermissions');
}