summaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search/Constants.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2011-05-13 21:56:44 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2011-05-13 21:56:44 +0200
commitc3a935575033f36a07eb411de7715a47af358228 (patch)
tree66d6ef328501d86875a07c6198b517f66daf0221 /xt/lib/Bugzilla/Test/Search/Constants.pm
parente39f635e0dc10c3f1084f762341ea91efd0ae21e (diff)
downloadbugzilla-c3a935575033f36a07eb411de7715a47af358228.tar.gz
bugzilla-c3a935575033f36a07eb411de7715a47af358228.tar.xz
Bug 656790 - Create a basic framework for testing custom search
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search/Constants.pm')
-rw-r--r--xt/lib/Bugzilla/Test/Search/Constants.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/Constants.pm b/xt/lib/Bugzilla/Test/Search/Constants.pm
index deca77a72..5558238df 100644
--- a/xt/lib/Bugzilla/Test/Search/Constants.pm
+++ b/xt/lib/Bugzilla/Test/Search/Constants.pm
@@ -36,6 +36,7 @@ our @EXPORT = qw(
COLUMN_TRANSLATION
COMMENT_FIELDS
CUSTOM_FIELDS
+ CUSTOM_SEARCH_TESTS
FIELD_SIZE
FIELD_SUBSTR_SIZE
FLAG_FIELDS
@@ -1021,4 +1022,14 @@ use constant SPECIAL_PARAM_TESTS => (
value => '%group.<1-bug_group>%', contains => [1,2,3,4,5] },
);
+use constant CUSTOM_SEARCH_TESTS => (
+ { name => 'bug_id AND assigned_to', contains => [1],
+ columns => ['assigned_to'],
+ params => [
+ { f => 'bug_id', o => 'equals', v => '<1>' },
+ { f => 'assigned_to', o => 'equals', v => '<1>' },
+ ]
+ },
+);
+
1;