[Rt-commit] r14053 - in rt/branches/3.999-DANGEROUS: t
sunnavy at bestpractical.com
sunnavy at bestpractical.com
Mon Jul 14 06:10:19 EDT 2008
Author: sunnavy
Date: Mon Jul 14 06:10:19 2008
New Revision: 14053
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/t/cron.t
Log:
r14394 at sunnavys-mb: sunnavy | 2008-07-14 16:23:20 +0800
name fix for t/cron.t
Modified: rt/branches/3.999-DANGEROUS/t/cron.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/cron.t (original)
+++ rt/branches/3.999-DANGEROUS/t/cron.t Mon Jul 14 06:10:19 2008
@@ -10,7 +10,7 @@
### Set up some testing data. Test the testing data because why not?
# Create a user with rights, a queue, and some tickets.
-my $user_obj = RT::Model::User->new(current_user => RT->system_user);
+my $user_object = RT::Model::User->new(current_user => RT->system_user);
my ($ret, $msg) = $user_object->load_or_create_by_email('tara at example.com');
ok($ret, 'record test user creation');
($ret,$msg) =$user_object->set_name('tara');
@@ -66,8 +66,8 @@
my $ticketsqlstr
= "Requestor.email = '" . $CurrentUser->email . "' AND Priority > '20'";
my $search = RT::Search::FromSQL->new(
- Argument => $ticketsqlstr,
- TicketsObj => RT::Model::TicketCollection->new( current_user => RT->system_user ),
+ argument => $ticketsqlstr,
+ tickets_obj => RT::Model::TicketCollection->new( current_user => RT->system_user ),
);
is(ref($search), 'RT::Search::FromSQL', "search Created");
ok($search->prepare(), "from_sql search run");
More information about the Rt-commit
mailing list