diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-05-13 21:56:44 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-05-13 21:56:44 +0200 |
commit | c3a935575033f36a07eb411de7715a47af358228 (patch) | |
tree | 66d6ef328501d86875a07c6198b517f66daf0221 /xt/lib/Bugzilla/Test/Search/Constants.pm | |
parent | e39f635e0dc10c3f1084f762341ea91efd0ae21e (diff) | |
download | bugzilla-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.pm | 11 |
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; |