[Rt-commit] r10142 - in rt/branches/3.999-DANGEROUS: .
jesse at bestpractical.com
jesse at bestpractical.com
Thu Dec 27 02:53:14 EST 2007
Author: jesse
Date: Thu Dec 27 02:53:14 2007
New Revision: 10142
Modified:
rt/branches/3.999-DANGEROUS/ (props changed)
rt/branches/3.999-DANGEROUS/t/ticket/sort_by_cf.t
Log:
r74259 at pinglin: jesse | 2007-12-27 02:53:06 -0500
passing 4032. failing 172 or so
Modified: rt/branches/3.999-DANGEROUS/t/ticket/sort_by_cf.t
==============================================================================
--- rt/branches/3.999-DANGEROUS/t/ticket/sort_by_cf.t (original)
+++ rt/branches/3.999-DANGEROUS/t/ticket/sort_by_cf.t Thu Dec 27 02:53:14 2007
@@ -92,7 +92,7 @@
}
# The real tests start here
-my $tx = RT::Model::TicketCollection->new( RT->system_user );
+my $tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
# Make sure we can sort in both directions on a queue specific field.
@@ -101,7 +101,7 @@
is($tx->count,2 ,"We found 2 tickets when lookign for cf charlie");
check_order( $tx, 1, 2);
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by( {column => "CF.${queue}.{Charlie}", order => 'ASC' });
is($tx->count,2, "We found two tickets when sorting by cf charlie without limiting to it" );
@@ -110,7 +110,7 @@
# When ordering by _global_ CustomFields, if more than one queue has a
# CF named Charlie, things will go bad. So, these results are uniqued
# in Tickets_Overlay.
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by({ column => "CF.{Charlie}", order => 'DESC' });
diag $tx->build_select_query;
@@ -120,7 +120,7 @@
check_order( $tx, 1, 2);
}
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by( {column => "CF.{Charlie}", order => 'ASC' });
diag $tx->build_select_query;
@@ -140,7 +140,7 @@
$t3->AddCustomFieldValue(Field => $cfB->id, value => '2');
$t3->AddCustomFieldValue(Field => $cfC->id, value => 'AAA');
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by(
{ column => "CF.${queue}.{Charlie}", order => 'ASC' },
@@ -152,7 +152,7 @@
check_order( $tx, 3, 2, 1);
}
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by(
{ column => "CF.${queue}.{Charlie}", order => 'DES' },
@@ -166,7 +166,7 @@
# Reverse the order of the secondary column, which changes the order
# of the first two tickets.
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by(
{ column => "CF.${queue}.{Charlie}", order => 'ASC' },
@@ -178,7 +178,7 @@
check_order( $tx, 2, 3, 1);
}
-$tx = RT::Model::TicketCollection->new( RT->system_user );
+$tx = RT::Model::TicketCollection->new( current_user => RT->system_user );
$tx->from_sql(qq[queue="$queue"] );
$tx->order_by(
{ column => "CF.${queue}.{Charlie}", order => 'DES' },
More information about the Rt-commit
mailing list