summaryrefslogtreecommitdiffstats
path: root/xt/lib
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 21:59:40 +0200
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 21:59:40 +0200
commit7e3b3b4032f9b6a76a43abe257fe73ae3a686128 (patch)
treec5f29553cb9cd5781b312cfef1277bf138ec0d82 /xt/lib
parent38230573e91978fcf0b5a768ca7aa9ec121ab1cc (diff)
downloadbugzilla-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)
Diffstat (limited to 'xt/lib')
-rw-r--r--xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm9
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