Bug 18316: (follow-up) Don't let 'fields' be undef and adjust tests
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
parent
4a060e18f9
commit
4abe3a4082
|
|
@ -92,7 +92,7 @@ sub build_query {
|
|||
default_operator => 'AND',
|
||||
default_field => '_all',
|
||||
lenient => JSON::true,
|
||||
fields => $options{fields},
|
||||
fields => $options{fields} || [],
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -266,7 +266,7 @@ sub test_search{
|
|||
$intra_text = $agent->text();
|
||||
|
||||
like( $intra_text, qr|Publisher: $publisher|, );
|
||||
my $expected_base = q|search.pl\?idx=kw&q=| . uri_escape_utf8( $publisher );
|
||||
my $expected_base = q|search.pl\?advsearch=1&idx=kw&q=| . uri_escape_utf8( $publisher );
|
||||
$agent->base_like(qr|$expected_base|, );
|
||||
|
||||
ok ( ( length(Encode::encode('UTF-8', $intra_text)) != length($intra_text) ) , 'UTF-8 are multi-byte. Good') ;
|
||||
|
|
|
|||
Loading…
Reference in New Issue