diff options
author | David Rothstein <drothstein@gmail.com> | 2012-06-04 01:07:43 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2012-06-04 01:07:43 -0400 |
commit | bbe4b34681f9bb52c344ac4475c1adc7b5c3f601 (patch) | |
tree | bf05ebf2c6df41b141eaf9f3f04737d894449a4c /modules/user | |
parent | 31a4cbdb0e804a66ef3f602450c872cefa949cbb (diff) | |
download | brdo-bbe4b34681f9bb52c344ac4475c1adc7b5c3f601.tar.gz brdo-bbe4b34681f9bb52c344ac4475c1adc7b5c3f601.tar.bz2 |
Issue #1600892 by tim.plunkett, sun: Fixed Tests use magic numbers 1 and 2 instead of user role constants.
Diffstat (limited to 'modules/user')
-rw-r--r-- | modules/user/user.test | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/user/user.test b/modules/user/user.test index 2efe5b070..9413ed5ee 100644 --- a/modules/user/user.test +++ b/modules/user/user.test @@ -2119,9 +2119,13 @@ class UserRolesAssignmentTestCase extends DrupalWebTestCase { /** * Check role on user object. * - * @param object $account User. - * @param integer $rid Role id. - * @param bool $is_assigned True if the role should present on the account. + * @param object $account + * The user account to check. + * @param string $rid + * The role ID to search for. + * @param bool $is_assigned + * (optional) Whether to assert that $rid exists (TRUE) or not (FALSE). + * Defaults to TRUE. */ private function userLoadAndCheckRoleAssigned($account, $rid, $is_assigned = TRUE) { $account = user_load($account->uid, TRUE); |