Koha-clms/t/db_dependent/Circulation
Tomás Cohen Arazi 86d54c2c4a
Bug 42391: (follow-up) Add missing warning assertions for Object::store
The previous follow-up restored warn in Object::store but missed
several test files that trigger DB exceptions via ->store(). These
tests now fail Test::NoWarnings because the warning is emitted but
not expected.

This patch adds warning_like wrappers to 15 additional test files,
asserting that the expected DB exception warning is emitted.

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ prove t/db_dependent/api/v1/biblios.t \
       t/db_dependent/Koha/Holds.t \
       t/db_dependent/api/v1/return_claims.t \
       t/db_dependent/api/v1/libraries.t \
       t/db_dependent/Koha/Booking.t \
       t/db_dependent/api/v1/patrons.t \
       t/db_dependent/SIP/Message.t \
       t/db_dependent/Koha/Patron.t \
       t/db_dependent/Koha/Acquisition/Fund.t \
       t/db_dependent/api/v1/acquisitions_orders.t \
       t/db_dependent/Koha/ILL/Requests.t \
       t/db_dependent/Koha/Patron/Relationship.t \
       t/db_dependent/Koha/Hold.t \
       t/db_dependent/Circulation/Returns.t \
       t/db_dependent/api/v1/bookings.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-07-27 12:12:29 +00:00
..
Branch.t
…
CalcDateDue.t
…
CalcFine.t
…
CheckIfIssuedToPatron.t
…
CheckValidBarcode.t
…
GetHardDueDate.t
…
GetPendingOnSiteCheckouts.t
…
GetTopIssues.t
…
IsItemIssued.t
…
MarkIssueReturned.t
…
NoIssuesChargeGuarantees.t
…
OfflineCirculation.t
…
OfflineOperation.t
…
ReturnClaims.t
…
Returns.t
…
StoreLastBorrower.t
…
SwitchOnSiteCheckouts.t
…
TooMany.t
…
_CalculateAndUpdateFine.t
…
dateexpiry.t
…
issue.t
…
maxsuspensiondays.t
…
transferbook.t
…
transfers.t
…