Koha/t/db_dependent/api/v1
Tomas Cohen Arazi dbd69d6650 Bug 29741: (follow-up) Make DELETE /patrons use the new validation method
This patch adapts the route so it uses the newly introduced
Koha::Patron->safe_to_delete method.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> SUCCESS: Tests pass
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests still pass!
4. Sign off :-D

Note: There's a trivial behavior change, in which the 'anonymous patron'
use case is caugh eariler than the ->delete call. I left the exception
catch block just in case, who knows :-D

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

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-01-05 13:33:46 -10:00
..
acquisitions_funds.t
acquisitions_orders.t
acquisitions_vendors.t
advanced_editor_macros.t
article_requests.t
auth.t
auth_authenticate_api_request.t
auth_basic.t
biblios.t
cashups.t
checkouts.t
cities.t
clubs_holds.t
holds.t Bug 24850: suspended_until is a date-time 2021-11-03 15:40:52 +01:00
illrequests.t
import_batch_profiles.t
items.t
libraries.t
oauth.t
patrons.t Bug 29741: (follow-up) Make DELETE /patrons use the new validation method 2022-01-05 13:33:46 -10:00
patrons_accounts.t
patrons_extended_attributes.t
patrons_holds.t
patrons_password.t
return_claims.t
smtp_servers.t
stockrotationstage.t
suggestions.t
transfer_limits.t
unhandled_exceptions.t Bug 28020: Unit tests 2022-01-05 13:33:46 -10:00