Bug 18762: Remove some warnings from Search.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 8 Jun 2017 19:11:45 +0000 (16:11 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Wed, 21 Jun 2017 06:17:27 +0000 (08:17 +0200)
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 <ldjamison@marywood.edu>

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
(cherry picked from commit 6d78d7a6108afc75546f933d601b04fde8b76c9b)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit f7bcec64644ea76aa3bff71fec41fb57d4442c13)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

t/db_dependent/Search.t

index 240c3d4..c8cbc48 100644 (file)
@@ -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;