https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43163 Bug ID: 43163 Summary: Booking tests fail Test::NoWarnings since Bug 42391 restored DB exception warnings Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Circulation Assignee: koha-bugs@lists.koha-community.org Reporter: paul.derscheid@lmscloud.de QA Contact: testopia@bugs.koha-community.org CC: gmcharlt@gmail.com, kyle@bywatersolutions.com Target Milestone: --- The follow-up on Bug 42391 restored the DB exception warnings in Koha::Object::store, but the earlier test refactor on that bug had already removed the warning_like wrappers from the booking tests. On current main, t/db_dependent/Koha/Booking.t and t/db_dependent/api/v1/bookings.t both fail 'no warnings': - Booking.t: duplicate booking_id store (DuplicateID) and invalid status enum update (BadValue) - api/v1/bookings.t: POST with an existing booking_id (409) This patch wraps the three sites in warning_like, following the pattern the Bug 42391 follow-up used in Object.t. To test: 1. prove t/db_dependent/Koha/Booking.t t/db_dependent/api/v1/bookings.t -> both fail 'no warnings' on main 2. Apply the patch, repeat → both pass -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.