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:
parent
8318a0ed4e
commit
2e1d7d0365
1 changed files with 2 additions and 0 deletions
|
@ -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 a new issue