diff options
author | ivan <ivan> | 2009-12-18 00:41:34 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-18 00:41:34 +0000 |
commit | 40a7b3dc653e099f7bd0bd762b649b04c4432db2 (patch) | |
tree | f818105b1c8b13d709af4e251ee3213c5ba6773d /rt/lib/t/regression/23cfsort.t | |
parent | 8d0665daac0c4deea67bf39bf4a13a9eaed51735 (diff) | |
parent | 2dfda73eeb3eae2d4f894099754794ef07d060dd (diff) |
This commit was generated by cvs2svn to compensate for changes in r8593,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'rt/lib/t/regression/23cfsort.t')
-rw-r--r-- | rt/lib/t/regression/23cfsort.t | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/rt/lib/t/regression/23cfsort.t b/rt/lib/t/regression/23cfsort.t index 85decc707..ba404f2ba 100644 --- a/rt/lib/t/regression/23cfsort.t +++ b/rt/lib/t/regression/23cfsort.t @@ -16,6 +16,8 @@ my($ret,$msg); # Test Sorting by custom fields. +# TODO: it's hard to read this file, conver to new style, +# for example look at 23cfsort-freeform-single.t # ---- Create a queue to test with. my $queue = "CFSortQueue-$$"; @@ -116,20 +118,14 @@ $tx->FromSQL(qq[queue="$queue"] ); $tx->OrderBy( FIELD => "CF.{Charlie}", ORDER => 'DESC' ); diag $tx->BuildSelectQuery; is($tx->Count,2); -TODO: { - local $TODO = 'order by CF fail'; check_order( $tx, 1, 2); -} $tx = new RT::Tickets( $RT::SystemUser ); $tx->FromSQL(qq[queue="$queue"] ); $tx->OrderBy( FIELD => "CF.{Charlie}", ORDER => 'ASC' ); diag $tx->BuildSelectQuery; is($tx->Count,2); -TODO: { - local $TODO = 'order by CF fail'; check_order( $tx, 2, 1); -} # Add a new ticket, to test sorting on multiple columns. my $t3 = RT::Ticket->new($RT::SystemUser); @@ -148,10 +144,7 @@ $tx->OrderByCols( { FIELD => "CF.${queue}.{Alpha}", ORDER => 'DES' }, ); is($tx->Count,3); -TODO: { - local $TODO = 'order by CF fail'; check_order( $tx, 3, 2, 1); -} $tx = new RT::Tickets( $RT::SystemUser ); $tx->FromSQL(qq[queue="$queue"] ); @@ -160,10 +153,7 @@ $tx->OrderByCols( { FIELD => "CF.${queue}.{Alpha}", ORDER => 'ASC' }, ); is($tx->Count,3); -TODO: { - local $TODO = 'order by CF fail'; check_order( $tx, 1, 2, 3); -} # Reverse the order of the secondary column, which changes the order # of the first two tickets. @@ -174,10 +164,7 @@ $tx->OrderByCols( { FIELD => "CF.${queue}.{Alpha}", ORDER => 'ASC' }, ); is($tx->Count,3); -TODO: { - local $TODO = 'order by CF fail'; check_order( $tx, 2, 3, 1); -} $tx = new RT::Tickets( $RT::SystemUser ); $tx->FromSQL(qq[queue="$queue"] ); @@ -186,7 +173,5 @@ $tx->OrderByCols( { FIELD => "CF.${queue}.{Alpha}", ORDER => 'DES' }, ); is($tx->Count,3); -TODO: { - local $TODO = 'order by CF fail'; check_order( $tx, 1, 3, 2); -} + |