[Rt-commit] r5202 - rt/branches/3.5-TESTING/lib/t/regression
ruz at bestpractical.com
ruz at bestpractical.com
Thu May 11 03:45:49 EDT 2006
Author: ruz
Date: Thu May 11 03:45:48 2006
New Revision: 5202
Modified:
rt/branches/3.5-TESTING/lib/t/regression/12-search.t
Log:
* add test for CF.{cfname} search format
Modified: rt/branches/3.5-TESTING/lib/t/regression/12-search.t
==============================================================================
--- rt/branches/3.5-TESTING/lib/t/regression/12-search.t (original)
+++ rt/branches/3.5-TESTING/lib/t/regression/12-search.t Thu May 11 03:45:48 2006
@@ -6,7 +6,7 @@
use strict;
use warnings;
-use Test::More tests => 43;
+use Test::More tests => 44;
use_ok('RT');
RT::LoadConfig();
RT::Init();
@@ -245,6 +245,10 @@
# tests with the same CF listed twice
$tix = RT::Tickets->new($RT::SystemUser);
+$tix->FromSQL("CF.{SearchTest} = 'foo1'");
+is($tix->Count, 1, "is cf.{name} format");
+
+$tix = RT::Tickets->new($RT::SystemUser);
$tix->FromSQL("CF.SearchTest = 'foo1' OR CF.SearchTest = 'foo3'");
is($tix->Count, 2, "is cf1 or is cf1");
More information about the Rt-commit
mailing list