Koha/t/db_dependent/api/v1
Tomas Cohen Arazi 320437e7bd Bug 28020: Unit tests
The unhandled_exception() Mojo helper didn't have proper tests. As this
bug is adding a slight behavior change, I tried to add some. As it
relies on the OpenAPI plugin, it cannot be done the usual way using
Mojo::Lite. So I picked a route and forced an exception through mocking
to be able to write tests.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/unhandled_exceptions.t
=> FAIL: The unhandled_exception() helper doesn't return an error_code
in the response payload.

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

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.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 Bug 27947: (QA follow-up) Clarify permissions 2021-10-06 10:09:25 +02:00
auth.t
auth_authenticate_api_request.t Bug 28948: Make is_public stashed on public routes 2021-10-28 17:32:34 +02:00
auth_basic.t
biblios.t Bug 29290: Unit tests 2021-10-28 17:32:34 +02:00
cashups.t
checkouts.t Bug 28931: Use EXPORT_OK from Koha::DateUtils 2021-10-07 11:01:05 +02:00
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 29018: Regression tests 2022-01-05 13:33:46 -10:00
patrons_accounts.t
patrons_extended_attributes.t
patrons_holds.t
patrons_password.t Bug 29272: (QA follow-up) Category setup overrides syspref 2021-10-28 12:16:37 +02:00
return_claims.t
smtp_servers.t
stockrotationstage.t
suggestions.t Bug 17314: Unit tests 2021-10-28 17:32:34 +02:00
transfer_limits.t
unhandled_exceptions.t Bug 28020: Unit tests 2022-01-05 13:33:46 -10:00