Skip to content

Commit

Permalink
Add test for LIKE search on numerical customfield
Browse files Browse the repository at this point in the history
  • Loading branch information
Emmanuel Lacour authored and sunnavy committed Jun 4, 2024
1 parent b298bb7 commit 2952c19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/ticket/search_by_cf_numeric.t
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ $tickets->FromSQL(q{Queue = 'General' AND CF.test_cf < CF.test_cf2 });
is( $tickets->Count, 1, 'Found 1 ticket' );
is( $tickets->First->id, $tickets[1]->id, 'Found the small ticket' );

$tickets->FromSQL(q{Queue = 'General' AND CF.test_cf LIKE 2 });
is( $tickets->Count, 1, 'Found 1 ticket' );
is( $tickets->First->id, $tickets[0]->id, 'Found the big ticket' );

$tickets->FromSQL(q{Queue = 'General'});
is( $tickets->Count, 2, 'Found 2 tickets' );
$tickets->OrderByCols( { FIELD => 'CustomField.test_cf' } );
Expand Down

0 comments on commit 2952c19

Please sign in to comment.