https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43108
--- Comment #11 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 202384 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=202384&action=edit Bug 43108: (QA follow-up) Add tests for booking window edge cases Cover three scenarios raised in QA review that weren't previously exercised: - Two bookings on the same item close enough that one's trail window collides with the other's lead window, and that a hard lead blocker and a soft lead_theoretical warning can legitimately coexist on the same day. - A booking whose span starts before and ends after the requested from/to range, verifying _mark's day-range clamping and that the lead/trail windows around the booking's true start/end (which fall outside the requested range) don't leak into it. - Circulation rules with bookings_lead_period/bookings_trail_period explicitly set to 0, as opposed to no rule at all, to confirm both resolve identically to "no lead/trail window" via the `|| 0` fallback. Test plan: prove t/db_dependent/Koha/Biblio/Availability/Booking.t Signed-off-by: Martin Renvoize <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
