https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40808
Martin Renvoize (ashimema) <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #186443|0 |1 is obsolete| | --- Comment #16 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 186465 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186465&action=edit Bug 40808: Add REST API unit tests for holds debits embedding Adds comprehensive API unit tests for the debits embedding functionality in the holds REST API endpoints. The tests verify: 1. GET /holds without embedding - should not include debits field 2. GET /holds with debits embedding - should include linked charges 3. GET /holds with empty debits - should return empty array when no fees linked Note: Currently the API embedding tests fail with 500 errors due to issues in the REST API framework's automatic embedding mechanism, though the underlying Hold.debits() method and to_api() functionality works correctly when tested directly. Also improves the Hold.debits() method to properly filter for debit-only account lines (excluding credits). -- 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/
