From 204093007aeeb87329fa06c8dd9a4fd8df94a85f Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sat, 2 Oct 2010 10:03:12 -0700 Subject: Bug 601376: Test the __all__, __open__, and __closed__ arguments to bug_status in xt/search.t r=mkanat, a=mkanat (module owner) --- xt/lib/Bugzilla/Test/Search/Constants.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'xt/lib/Bugzilla/Test/Search/Constants.pm') diff --git a/xt/lib/Bugzilla/Test/Search/Constants.pm b/xt/lib/Bugzilla/Test/Search/Constants.pm index 3c68f69d2..abe01bbd1 100644 --- a/xt/lib/Bugzilla/Test/Search/Constants.pm +++ b/xt/lib/Bugzilla/Test/Search/Constants.pm @@ -48,6 +48,7 @@ our @EXPORT = qw( OR_SKIP PG_BROKEN SKIP_FIELDS + SPECIAL_PARAM_TESTS SUBSTR_NO_FIELD_ADD SUBSTR_SIZE TESTS @@ -1248,4 +1249,17 @@ use constant OR_BROKEN => { }, }; +################# +# Special Tests # +################# + +use constant SPECIAL_PARAM_TESTS => ( + { field => 'bug_status', operator => 'anyexact', value => '__open__', + contains => [5] }, + { field => 'bug_status', operator => 'anyexact', value => '__closed__', + contains => [1,2,3,4] }, + { field => 'bug_status', operator => 'anyexact', value => '__all__', + contains => [1,2,3,4,5] }, +); + 1; -- cgit v1.2.3-24-g4f1b