Bug 30531: Add mock of UseRecalls to Search.t

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Nick Clemens 2022-04-14 11:24:48 +00:00 committed by Fridolin Somers
parent eda11a0293
commit d5e0bf50a1

View file

@ -154,6 +154,8 @@ $contextmodule->mock('preference', sub {
return 'branch';
} elsif ($pref eq 'SearchLimitLibrary') {
return 'both';
} elsif ($pref eq 'UseRecalls') {
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;