From 91c1e31ce2be89fdeb93af60d14de50d15a42364 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 9 Jul 2025 10:23:17 +0100 Subject: [PATCH] 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 --- t/db_dependent/Search.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Search.t b/t/db_dependent/Search.t index 9249bca11dc..beaf6cb43ab 100755 --- a/t/db_dependent/Search.t +++ b/t/db_dependent/Search.t @@ -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" -- 2.39.5