RT 4.2.11, ticket#13852
[freeside.git] / rt / t / api / groups.t
index d2dc126..c2e7fc5 100644 (file)
@@ -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);