You are here

protected function FieldPermissionsTestCase::assertUserHasPermission in Field Permissions 7

Asserts that a user account has a permission.

1 call to FieldPermissionsTestCase::assertUserHasPermission()
FieldPermissionsTestCase::testPermissionsUI in ./field_permissions.test

File

./field_permissions.test, line 303
Tests for field_permissions.module.

Class

FieldPermissionsTestCase
Tests the Field Permissions module.

Code

protected function assertUserHasPermission($account, $permission, $message) {
  $this
    ->_assertUserPermissionState($account, $permission, $message, TRUE);
}