diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 21:59:40 +0200 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-10-02 21:59:40 +0200 |
commit | 7e3b3b4032f9b6a76a43abe257fe73ae3a686128 (patch) | |
tree | c5f29553cb9cd5781b312cfef1277bf138ec0d82 | |
parent | 38230573e91978fcf0b5a768ca7aa9ec121ab1cc (diff) | |
download | bugzilla-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.tar.gz bugzilla-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.tar.xz |
Bug 601394 - Make xt/search.t test the deadlinefrom and deadline to search
query parameters
r=mkanat, a=mkanat (module owner)
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm | 9 |
1 files changed, 8 insertions, 1 deletions
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 |