[Rt-commit] r18755 - rt/3.999/trunk/t/api
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Tue Mar 10 02:31:48 EDT 2009
Author: sunnavy
Date: Tue Mar 10 02:31:48 2009
New Revision: 18755
Modified:
rt/3.999/trunk/t/api/user.t
Log:
since queue doesn't have role groups by default, we need to create them in test
Modified: rt/3.999/trunk/t/api/user.t
==============================================================================
--- rt/3.999/trunk/t/api/user.t (original)
+++ rt/3.999/trunk/t/api/user.t Tue Mar 10 02:31:48 2009
@@ -101,6 +101,10 @@
$rootq->load(1);
ok($rootq->id, "Loaded the first queue");
+for my $role ( qw/owner requestor cc admin_cc/ ) {
+ $rootq->create_role_group( $role );
+}
+
ok ($rootq->current_user->has_right(right=> 'CreateTicket', object => $rootq), "Root can create tickets");
my $new_user = RT::Model::User->new(current_user => RT->system_user);
More information about the Rt-commit
mailing list