From 3675e9cf78ba40c6efcf78742e62b88fda3646b2 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 4 Nov 2019 10:43:49 +0000 Subject: [PATCH] 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 --- t/db_dependent/Search.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index d40bc166a9..af1ffc05c8 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -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; -- 2.39.2