Bug 22416: (bug 22140 follow-up) Remove warnings in Search.t
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Mar 2019 17:29:58 +0000 (14:29 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 12 Mar 2019 08:46:01 +0000 (08:46 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit eb7b2907c55d896a7c5b8bccf31daeae8bc5720b)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

t/db_dependent/Search.t

index b5e5031..4ef1ebe 100644 (file)
@@ -178,6 +178,8 @@ $contextmodule->mock('preference', sub {
         return '0';
     } elsif ($pref eq 'viewISBD') {
         return '1';
+    } elsif ($pref eq 'EasyAnalyticalRecords') {
+        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;