[Koha-bugs] [Bug 14708] The patron set as the anonymous patron should not be deletable

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 5 15:56:58 CET 2020


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

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

This patch adds tests for the change. It also simplifies the delete()
method structure a bit. It fixes the error 500 the tests were raising.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Tests fail!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass! The new behaviour (code 403) is tested!
4. Sign off :-D

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