Bug 36947: (QA follow-up) Add FacetSortingLocale to Search.t mock preferences
The test was failing because the new FacetSortingLocale system preference
added was not included in the mock preference handler in t/db_dependent/Search.t.
This caused warnings about the unknown preference when the _sort_facets_zebra
function was called.
This commit adds the FacetSortingLocale preference to the mock, returning
'default' as the value, which matches the expected fallback behavior of
the new unicode collation sorting feature.
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 21a217d5bf)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
53ea1c9a0b
commit
3945404059
|
|
@ -170,6 +170,8 @@ $contextmodule->mock(
|
|||
return q{};
|
||||
} elsif ( $pref eq 'COinSinOPACResults' ) {
|
||||
return q{};
|
||||
} elsif ( $pref eq 'FacetSortingLocale' ) {
|
||||
return 'default';
|
||||
} else {
|
||||
warn
|
||||
"The syspref $pref was requested but I don't know what to say; this indicates that the test requires updating"
|
||||
|
|
|
|||
Loading…
Reference in New Issue