diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-15 19:55:10 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-07-15 19:55:10 -0700 |
commit | dbaf1c3aaf975ed78d8e8538b2df18ab9f47654b (patch) | |
tree | db913e59441783297ad780e89cd372897a6ec184 /xt/lib/Bugzilla/Test/Search/AndTest.pm | |
parent | 6a2a01fbc44c5a777b3a612540a9ced23401c2bc (diff) | |
download | bugs-dbaf1c3aaf975ed78d8e8538b2df18ab9f47654b.tar bugs-dbaf1c3aaf975ed78d8e8538b2df18ab9f47654b.tar.gz bugs-dbaf1c3aaf975ed78d8e8538b2df18ab9f47654b.tar.bz2 bugs-dbaf1c3aaf975ed78d8e8538b2df18ab9f47654b.tar.xz bugs-dbaf1c3aaf975ed78d8e8538b2df18ab9f47654b.zip |
Bug 398308: Make Search.pm take a hashref for its "params" argument
instead of taking a CGI object.
r=mkanat, a=mkanat (module owner)
Diffstat (limited to 'xt/lib/Bugzilla/Test/Search/AndTest.pm')
-rw-r--r-- | xt/lib/Bugzilla/Test/Search/AndTest.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/xt/lib/Bugzilla/Test/Search/AndTest.pm b/xt/lib/Bugzilla/Test/Search/AndTest.pm index d7b21af48..b4554584b 100644 --- a/xt/lib/Bugzilla/Test/Search/AndTest.pm +++ b/xt/lib/Bugzilla/Test/Search/AndTest.pm @@ -25,7 +25,6 @@ package Bugzilla::Test::Search::AndTest; use base qw(Bugzilla::Test::Search::OrTest); use Bugzilla::Test::Search::Constants; -use Bugzilla::Test::Search::FakeCGI; use List::MoreUtils qw(all); use constant type => 'AND'; @@ -55,15 +54,15 @@ sub _join_broken_constant { {} } sub search_params { my ($self) = @_; my @all_params = map { $_->search_params } $self->field_tests; - my $params = new Bugzilla::Test::Search::FakeCGI; + my %params; my $chart = 0; foreach my $item (@all_params) { - $params->param("field0-$chart-0", $item->param('field0-0-0')); - $params->param("type0-$chart-0", $item->param('type0-0-0')); - $params->param("value0-$chart-0", $item->param('value0-0-0')); + $params{"field0-$chart-0"} = $item->{'field0-0-0'}; + $params{"type0-$chart-0"} = $item->{'type0-0-0'}; + $params{"value0-$chart-0"} = $item->{'value0-0-0'}; $chart++; } - return $params; + return \%params; } 1;
\ No newline at end of file |