Bug 33719: Silence warnings on ContentWarningField in Search.t
Test plan: Run t/db_dependent/Search.t Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
4eeac8a18d
commit
f1b75d49bb
|
|
@ -157,6 +157,8 @@ $contextmodule->mock('preference', sub {
|
|||
return 'both';
|
||||
} elsif ($pref eq 'UseRecalls') {
|
||||
return '0';
|
||||
} elsif ( $pref eq 'ContentWarningField' ) {
|
||||
return q{};
|
||||
} 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