X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Ft%2Fticket%2Fsearch_by_txn.t;fp=rt%2Ft%2Fticket%2Fsearch_by_txn.t;h=0e5f76dcd609f48e651ac77d5524b217757dd192;hp=1be6916efabe0abbd2fa06816fe496936056b48a;hb=43a06151e47d2c59b833cbd8c26d97865ee850b6;hpb=6587f6ba7d047ddc1686c080090afe7d53365bd4 diff --git a/rt/t/ticket/search_by_txn.t b/rt/t/ticket/search_by_txn.t index 1be6916ef..0e5f76dcd 100644 --- a/rt/t/ticket/search_by_txn.t +++ b/rt/t/ticket/search_by_txn.t @@ -11,13 +11,13 @@ use RT::Test tests => 10; my $SUBJECT = "Search test - ".$$; use_ok('RT::Tickets'); -my $tix = RT::Tickets->new($RT::SystemUser); +my $tix = RT::Tickets->new(RT->SystemUser); can_ok($tix, 'FromSQL'); $tix->FromSQL('Updated = "2005-08-05" AND Subject = "$SUBJECT"'); ok(! $tix->Count, "Searching for tickets updated on a random date finds nothing" . $tix->Count); -my $ticket = RT::Ticket->new($RT::SystemUser); +my $ticket = RT::Ticket->new(RT->SystemUser); $ticket->Create(Queue => 'General', Subject => $SUBJECT); ok ($ticket->id, "We created a ticket"); my ($id, $txnid, $txnobj) = $ticket->Comment( Content => 'A comment that happend on 2004-01-01');