diff options
Diffstat (limited to 'rt/t/shredder/01ticket.t')
-rw-r--r-- | rt/t/shredder/01ticket.t | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/rt/t/shredder/01ticket.t b/rt/t/shredder/01ticket.t index 5625b985d..7dff16df3 100644 --- a/rt/t/shredder/01ticket.t +++ b/rt/t/shredder/01ticket.t @@ -22,13 +22,13 @@ use RT::Ticket; use RT::Tickets; { - my $ticket = RT::Ticket->new( $RT::SystemUser ); + my $ticket = RT::Ticket->new( RT->SystemUser ); my ($id) = $ticket->Create( Subject => 'test', Queue => 1 ); ok( $id, "created new ticket" ); $ticket->Delete; is( $ticket->Status, 'deleted', "successfuly changed status" ); - my $tickets = RT::Tickets->new( $RT::SystemUser ); + my $tickets = RT::Tickets->new( RT->SystemUser ); $tickets->{'allow_deleted_search'} = 1; $tickets->LimitStatus( VALUE => 'deleted' ); is( $tickets->Count, 1, "found one deleted ticket" ); @@ -40,12 +40,12 @@ use RT::Tickets; cmp_deeply( dump_current_and_savepoint('clean'), "current DB equal to savepoint"); { - my $parent = RT::Ticket->new( $RT::SystemUser ); + my $parent = RT::Ticket->new( RT->SystemUser ); my ($pid) = $parent->Create( Subject => 'test', Queue => 1 ); ok( $pid, "created new ticket" ); create_savepoint('parent_ticket'); - my $child = RT::Ticket->new( $RT::SystemUser ); + my $child = RT::Ticket->new( RT->SystemUser ); my ($cid) = $child->Create( Subject => 'test', Queue => 1 ); ok( $cid, "created new ticket" ); @@ -62,14 +62,14 @@ cmp_deeply( dump_current_and_savepoint('clean'), "current DB equal to savepoint" cmp_deeply( dump_current_and_savepoint('clean'), "current DB equal to savepoint"); { - my $parent = RT::Ticket->new( $RT::SystemUser ); + my $parent = RT::Ticket->new( RT->SystemUser ); my ($pid) = $parent->Create( Subject => 'test', Queue => 1 ); ok( $pid, "created new ticket" ); my ($status, $msg) = $parent->Delete; ok( $status, 'deleted parent ticket'); create_savepoint('parent_ticket'); - my $child = RT::Ticket->new( $RT::SystemUser ); + my $child = RT::Ticket->new( RT->SystemUser ); my ($cid) = $child->Create( Subject => 'test', Queue => 1 ); ok( $cid, "created new ticket" ); |