Bug 17664: Silence non-zebra warnings in t/db_dependent/Search.t
TEST PLAN
---------
0) back up database
1) drop database; create database
2) run web installer
3) prove t/db_dependent/Search.t
-- the spammy warnings (other than zebra index warnings) may
already be fixed, but the mocked value was not realistic.
4) apply patch
5) prove t/db_dependent/Search.t
-- notice only zebra index warnings.
6) run qa test tools
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 5e63a38381)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
96143e8d9e
commit
23c8acd615
|
|
@ -49,7 +49,7 @@ sub target_syntax {
|
|||
foreach my $field (@{$self->fields}) {
|
||||
$fieldobj = $self->plan->QueryParser->bib1_mapping_by_name('field', $self->classname, $field, $server);
|
||||
$relbump = $self->plan->QueryParser->bib1_mapping_by_name('relevance_bump', $self->classname, $field, $server);
|
||||
if ($relbump) {
|
||||
if ($relbump && defined $relbump->{'attr_string'}) {
|
||||
$fieldobj->{'attr_string'} .= ' ' . $relbump->{'attr_string'};
|
||||
}
|
||||
push @fields, $fieldobj unless (!defined($fieldobj) || ($field eq $self->classname && @{$self->fields} > 1));
|
||||
|
|
|
|||
|
|
@ -139,7 +139,7 @@ $contextmodule->mock('preference', sub {
|
|||
} elsif ($pref eq 'casAuthentication' or $pref eq 'casLogout' or $pref eq 'casServerUrl' ) {
|
||||
return '';
|
||||
} elsif ($pref eq 'template') {
|
||||
return '';
|
||||
return 'prog';
|
||||
} else {
|
||||
warn "The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating"
|
||||
unless $pref =~ m/(XSLT|item|branch|holding|image)/i;
|
||||
|
|
|
|||
Loading…
Reference in New Issue