Skip to content

Commit 4cd245d

Browse files
author
Emmanuel Lacour
committed
Add test for LIKE search on numerical customfield
1 parent 398bdbb commit 4cd245d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/ticket/search_by_cf_numeric.t

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ $tickets->FromSQL(q{Queue = 'General' AND CF.test_cf < CF.test_cf2 });
5252
is( $tickets->Count, 1, 'Found 1 ticket' );
5353
is( $tickets->First->id, $tickets[1]->id, 'Found the small ticket' );
5454

55+
$tickets->FromSQL(q{Queue = 'General' AND CF.test_cf LIKE 2 });
56+
is( $tickets->Count, 1, 'Found 1 ticket' );
57+
is( $tickets->First->id, $tickets[0]->id, 'Found the big ticket' );
58+
5559
$tickets->FromSQL(q{Queue = 'General'});
5660
is( $tickets->Count, 2, 'Found 2 tickets' );
5761
$tickets->OrderByCols( { FIELD => 'CustomField.test_cf' } );

0 commit comments

Comments
 (0)