Bug 22581: (RM follow-up) Add sysprefs to Search.t

This patch adds explicit disablement of the sysprefs introduced by this
bug to the Search.t test to silence warnings.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2019-11-04 10:43:49 +00:00
parent bd9c93da54
commit 3675e9cf78
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 0 deletions

View File

@ -186,6 +186,10 @@ $contextmodule->mock('preference', sub {
return '0';
} elsif ($pref eq 'OpenURLText') {
return '0';
} elsif ($pref eq 'OPACShowMusicalInscripts') {
return '0';
} elsif ($pref eq 'OPACPlayMusicalInscripts') {
return '0';
} 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;