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>
(cherry picked from commit f1b75d49bb)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
This commit is contained in:
Marcel de Rooy 2023-05-11 09:19:41 +00:00 committed by Pedro Amorim
parent 8318a0ed4e
commit 2e1d7d0365

View file

@ -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;