https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41129

--- Comment #265 from Paul Derscheid <[email protected]> ---
Created attachment 209268
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209268&action=edit
Bug 41129: (QA follow-up) Fix vacuous pool test

- The unrelated item had its own overlapping booking, so the assertion
  returned 0 whether or not check_booking grandfathered it
- Check against a second unbookable item without bookings; the booked
  one still covers bookings outside the pool in the first assertion

Test plan:
1. Run: prove t/db_dependent/Koha/Biblio.t
2. Confirm it passes
3. In Koha/Biblio.pm check_booking, remove the
   "&& $booking->item_id == $item_id" condition
4. Run the test again and confirm 'An unrelated unbookable item does
   not enter the availability pool' fails
5. Restore Koha/Biblio.pm

Assisted-by: Opus 5.5 (Anthropic)
Signed-off-by: Paul Derscheid <[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/

Reply via email to