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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected], [email protected]
  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.
_______________________________________________
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