https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40817 --- Comment #6 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 186481 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186481&action=edit Bug 40817: Add comprehensive unit tests for hold-account line linking This patch adds comprehensive unit test coverage for the hold-account line linking functionality: t/db_dependent/Koha/Account/Line.t: - Test hold() method returns correct Koha::Hold/Koha::Old::Hold objects - Test handling of reserve_id and old_reserve_id fields - Test graceful handling of NULL and invalid references t/db_dependent/Koha/Hold.t: - Test debits() method returns correct Koha::Account::Debits collection - Test _move_to_old() account line migration functionality - Test proper linking of fees to holds during creation and lifecycle t/db_dependent/Koha/Old/Hold.t: - Test debits() method for historical holds - Test account line relationships for completed/cancelled holds t/db_dependent/Koha/Account.t: - Test add_debit() with hold_id parameter for current and old holds - Test automatic hold detection and field assignment - Test error handling for non-existent holds -- You are receiving this mail because: You are watching all bug changes.