diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2015-07-26 15:41:26 -0700 |
| commit | 9aee669886202be7035e6c6049fc71bc99dd3013 (patch) | |
| tree | 2fd5bf6de74f3d99270587ffb1833e4188a6373d /rt/t/api/groups.t | |
| parent | ac20214d38d9af00430423f147b5a0e50751b050 (diff) | |
| parent | 1add633372bdca3cc7163c2ce48363fed3984437 (diff) | |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
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); |
