diff options
author | Mark Wells <mark@freeside.biz> | 2015-07-10 18:15:08 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-07-10 18:15:08 -0700 |
commit | 88bf5db0cca989c51237c661a13078eef08b3674 (patch) | |
tree | 0a84e1b5e7fd239f57fab678bf40c5311b0064a0 /rt/t/api/groups.t | |
parent | 9c15ffe3a5ee987e30e10c6a0ad1b5bf0b2a12e3 (diff) | |
parent | e7eb845db1afab1cbdbc34ff9c387c5ac554659e (diff) |
Merge branch 'FREESIDE_4_BRANCH' of git.freeside.biz:/home/git/freeside into 4.x
Diffstat (limited to 'rt/t/api/groups.t')
-rw-r--r-- | rt/t/api/groups.t | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/rt/t/api/groups.t b/rt/t/api/groups.t index d2dc126dc..c2e7fc583 100644 --- a/rt/t/api/groups.t +++ b/rt/t/api/groups.t @@ -2,7 +2,7 @@ use strict; use warnings; use RT::Test nodata => 1, tests => 27; -RT::Group->AddRights( +RT::Group->AddRight( General => 'RTxGroupRight' => 'Just a right for testing rights', ); @@ -49,8 +49,7 @@ my $testuser = RT::User->new(RT->SystemUser); ($id,$msg) = $testuser->Create(Name => 'JustAnAdminCc'); ok ($id,$msg); -my $global_admin_cc = RT::Group->new(RT->SystemUser); -$global_admin_cc->LoadSystemRoleGroup('AdminCc'); +my $global_admin_cc = RT->System->RoleGroup( 'AdminCc' ); ok($global_admin_cc->id, "Found the global admincc group"); my $groups = RT::Groups->new(RT->SystemUser); $groups->WithRight(Right => 'OwnTicket', Object => $q); |