https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42835 --- Comment #39 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Created attachment 203720 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=203720&action=edit Bug 42835: (QA follow-up) Add test coverage for OPAC item visibility batching C4::Search::searchResults() gained a pre-scan that batches the OPAC item-visibility check into one DB call per page instead of one per item, but shipped with no corresponding test. Add coverage for a mixed visible/hidden batch, a batch with no items at all, and the per-item fallback path. The fallback is exercised by mocking MARC parsing to fail only during the pre-scan, forcing the old per-item lookup to run instead of the batched one. Test plan: 1) Run: prove t/db_dependent/Search.t Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> -- You are receiving this mail because: You are watching all bug changes.