From f896af82efc8a98bd73fd500d466393ddcdc9ec1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 8 Jun 2017 16:11:45 -0300 Subject: [PATCH] Bug 18762: Remove some warnings from Search.t Note that some are caused by CGI, see bug 18632 Test plan: Confirm there are less warnings with this patch applied Signed-off-by: Lee Jamison Signed-off-by: Mark Tompsett --- 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 240c3d432b..c8cbc48171 100644 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -136,6 +136,10 @@ $contextmodule->mock('preference', sub { return 'holding'; } elsif ($pref eq 'UNIMARCAuthorsFacetsSeparator') { return '--'; + } elsif ($pref eq 'casAuthentication' or $pref eq 'casLogout' or $pref eq 'casServerUrl' ) { + return ''; + } elsif ($pref eq 'template') { + return ''; } 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.11.0