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

--- Comment #47 from David Nind <[email protected]> ---
Created attachment 198684
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=198684&action=edit
Bug 42418: (follow-up) Fix Patrons.t for checkin record creation

AddReturn now creates a checkin record which requires a valid
library_id. The anonymize_last_borrowers subtests call AddReturn
without a userenv set, causing a NOT NULL constraint violation.

This adds mock_userenv before the AddReturn calls.

Test plan:
1. Apply patch
2. Run:
   $ ktd --shell
   k$ prove t/db_dependent/Koha/Patrons.t
=> SUCCESS: All 52 tests pass!
3. Sign off :-D

Signed-off-by: David Nind <[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