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

--- Comment #19 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 193207
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193207&action=edit
Bug 40817: Add unit tests for hold-account line linking

This patch adds unit tests 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

Signed-off-by: Jackie Usher <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to