[Koha-bugs] [Bug 30007] Make ->anonymize methods throw an exception if AnonymousPatron is not set

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Mar 2 21:50:43 CET 2022


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

--- Comment #17 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 131298
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131298&action=edit
Bug 30007: (follow-up) Adapt tests

This patch adapts tests to acknowledge ->cancel and ->fill methods won't
yield 'undef' borrowernumber when anonymization takes place, and even
further, and exception will be thrown and cancellation/fulfillment will
be rejected.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Hold.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Bonus: this problem was hidding bad tests caused by 29857, fixed on this
one as well.

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list