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:
Martin Renvoize 2025-07-09 10:23:17 +01:00 committed by Paul Derscheid
parent 53ea1c9a0b
commit 3945404059
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 2 additions and 0 deletions

View File

@ -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"