From 7e3b3b4032f9b6a76a43abe257fe73ae3a686128 Mon Sep 17 00:00:00 2001 From: Max Kanat-Alexander Date: Sat, 2 Oct 2010 12:59:40 -0700 Subject: Bug 601394 - Make xt/search.t test the deadlinefrom and deadline to search query parameters r=mkanat, a=mkanat (module owner) --- xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'xt') diff --git a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm index 22edf2216..6f3564d0d 100644 --- a/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm +++ b/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm @@ -71,9 +71,16 @@ sub search_params { } return { chfield => $field, $ch_param => $value }; } + + if ($field eq 'deadline' and $operator eq 'greaterthaneq') { + return { deadlinefrom => $value }; + } + if ($field eq 'deadline' and $operator eq 'lessthaneq') { + return { deadlineto => $value }; + } $field =~ s/\./_/g; - return { $field => $value, "${field}_type" => $self->operator }; + return { $field => $value, "${field}_type" => $operator }; } 1; \ No newline at end of file -- cgit v1.2.3-24-g4f1b