https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43151 --- Comment #10 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 205605 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=205605&action=edit Bug 43151: (QA follow-up) Add end-to-end build_query_compat test for item-level constraints Every existing test either called _extract_item_level_constraints directly with synthetic post-_fix_limit_special_cases strings, or called _apply_item_level_filters/_get_matching_biblionumbers/_get_item_facets with hand-built group structures - the join between what a real search sends and what gets extracted was only verified manually per the KTD test plan. Add a subtest that drives build_query_compat itself with raw limits as they'd actually arrive from a browser search (an mc-itype checkbox, the availability checkbox, and the "Individual libraries" branch dropdown under different SearchLimitLibrary settings, plus a phrase-quoted checkbox limit and non-item-level limits), asserting on the resulting $query->{_item_level_constraints}. Test plan: 1) prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t -- You are receiving this mail because: You are watching all bug changes.