summaryrefslogtreecommitdiff
path: root/rt/t/api/cron.t
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2015-07-10 18:15:08 -0700
committerMark Wells <mark@freeside.biz>2015-07-10 18:15:08 -0700
commit88bf5db0cca989c51237c661a13078eef08b3674 (patch)
tree0a84e1b5e7fd239f57fab678bf40c5311b0064a0 /rt/t/api/cron.t
parent9c15ffe3a5ee987e30e10c6a0ad1b5bf0b2a12e3 (diff)
parente7eb845db1afab1cbdbc34ff9c387c5ac554659e (diff)
Merge branch 'FREESIDE_4_BRANCH' of git.freeside.biz:/home/git/freeside into 4.x
Diffstat (limited to 'rt/t/api/cron.t')
-rw-r--r--rt/t/api/cron.t26
1 files changed, 13 insertions, 13 deletions
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;