X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=rt%2Ft%2Fapi%2Fcron.t;h=b16adde820e25f07dbae70b86a59bea5739131d0;hb=1c538bfabc2cd31f27067505f0c3d1a46cba6ef0;hp=6bd992df3f74078dd4a1ff098e451f47e7e30076;hpb=4f5619288413a185e9933088d9dd8c5afbc55dfa;p=freeside.git diff --git a/rt/t/api/cron.t b/rt/t/api/cron.t index 6bd992df3..b16adde82 100644 --- a/rt/t/api/cron.t +++ b/rt/t/api/cron.t @@ -24,10 +24,10 @@ This is a content string with no content.'; my $template_obj = RT::Template->new($CurrentUser); $template_obj->Create(Queue => '0', - Name => 'recordtest', - Description => 'testing Record actions', - Content => $template_content, - ); + Name => 'recordtest', + Description => 'testing Record actions', + Content => $template_content, + ); # Create a queue and some tickets. @@ -36,17 +36,17 @@ my $queue_obj = RT::Queue->new($CurrentUser); ok($ret, 'record test queue creation'); my $ticket1 = RT::Ticket->new($CurrentUser); -my ($id, $tobj, $msg2) = $ticket1->Create(Queue => $queue_obj, - Requestor => ['tara@example.com'], - Subject => 'bork bork bork', - Priority => 22, - ); +my ($id, $tobj, $msg2) = $ticket1->Create(Queue => $queue_obj, + Requestor => ['tara@example.com'], + Subject => 'bork bork bork', + Priority => 22, + ); ok($id, 'record test ticket creation 1'); my $ticket2 = RT::Ticket->new($CurrentUser); ($id, $tobj, $msg2) = $ticket2->Create(Queue => $queue_obj, - Requestor => ['root@localhost'], - Subject => 'hurdy gurdy' - ); + Requestor => ['root@localhost'], + Subject => 'hurdy gurdy' + ); ok($id, 'record test ticket creation 2'); @@ -58,7 +58,7 @@ ok(require RT::Search::FromSQL, "Search::FromSQL loaded"); my $ticketsqlstr = "Requestor.EmailAddress = '" . $CurrentUser->EmailAddress . "' AND Priority > '20'"; my $search = RT::Search::FromSQL->new(Argument => $ticketsqlstr, TicketsObj => RT::Tickets->new($CurrentUser), - ); + ); is(ref($search), 'RT::Search::FromSQL', "search created"); ok($search->Prepare(), "fromsql search run"); my $counter = 0;