aboutsummaryrefslogtreecommitdiffstats
path: root/xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 12:59:40 -0700
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-10-02 12:59:40 -0700
commit7e3b3b4032f9b6a76a43abe257fe73ae3a686128 (patch)
treec5f29553cb9cd5781b312cfef1277bf138ec0d82 /xt/lib/Bugzilla/Test/Search/FieldTestNormal.pm
parent38230573e91978fcf0b5a768ca7aa9ec121ab1cc (diff)
downloadbugs-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.tar
bugs-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.tar.gz
bugs-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.tar.bz2
bugs-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.tar.xz
bugs-7e3b3b4032f9b6a76a43abe257fe73ae3a686128.zip
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/Bugzilla/Test/Search/FieldTestNormal.pm')
-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