Bug 11334: (follow-up) teach the search tests to mock the DisplayLibraryFacets syspref
authorGalen Charlton <gmc@esilibrary.com>
Wed, 30 Apr 2014 03:29:46 +0000 (03:29 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 30 Apr 2014 03:29:46 +0000 (03:29 +0000)
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
t/db_dependent/Search.t

index 856014a..ed3c797 100644 (file)
@@ -115,6 +115,8 @@ $contextmodule->mock('preference', sub {
         return '490av';
     } elsif ($pref eq 'authoritysep') {
         return '--';
+    } elsif ($pref eq 'DisplayLibraryFacets') {
+        return 'holding';
     } 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;