Koha/t/db_dependent/api/v1
Tomas Cohen Arazi e5d5fbdd3e Bug 27797: (QA follow-up) Pickup locations can be overridden too
This patch adds regression tests for overridding pickup locations, which
was inadvertedly not covered by the original dev. What this does, is
moving the $can_override variable definition above, and avoid returning
400 if conditions are not met for the passed pickup_library_id, when
$can_override is true.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/holds.t
=> SUCCESS: Tests pass!

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-05-04 14:22:04 +02:00
..
acquisitions_funds.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
acquisitions_orders.t Bug 20212: (follow-up) Avoid pagination on full resultset test 2021-01-28 16:44:12 +01:00
acquisitions_vendors.t Bug 27587: Use Basic auth on API tests - acquisitions_vendors.t 2021-02-08 17:09:34 +01:00
advanced_editor_macros.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
auth.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
auth_authenticate_api_request.t Bug 27760: Make authenticate_api_request call stash_overrides 2021-05-04 14:22:02 +02:00
auth_basic.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
biblios.t Bug 27932: Unit tests 2021-04-30 17:19:01 +02:00
cashups.t Bug 26274: (QA follow-up) Minor fixes 2021-02-12 12:33:41 +01:00
checkouts.t Bug 24083: (QA follow-up) Fix failing tests 2020-11-12 16:51:57 +01:00
cities.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
clubs_holds.t Bug 27593: Regression tests 2021-02-23 13:16:07 +01:00
holds.t Bug 27797: (QA follow-up) Pickup locations can be overridden too 2021-05-04 14:22:04 +02:00
illrequests.t Bug 27587: Use Basic auth on API tests - illrequests.t 2021-02-08 17:09:34 +01:00
import_batch_profiles.t Bug 23019: (follow-up) Fix test permissions and API definition bugs 2020-11-11 15:55:49 +01:00
items.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
libraries.t Bug 26384: Fix executable flags 2020-09-11 09:56:56 +02:00
oauth.t Bug 25623: Make sure oauth.t rolls back the db 2020-06-15 11:53:36 +02:00
patrons.t Bug 28002: Unit tests 2021-04-22 14:50:12 +02:00
patrons_accounts.t Bug 27636: Update failing test 2021-04-27 16:23:49 +02:00
patrons_extended_attributes.t Bug 23666: (follow-up) Adjust to new exceptions 2021-04-22 14:50:12 +02:00
patrons_holds.t Bug 27366: Unit tests 2021-03-16 16:08:31 +01:00
patrons_password.t Bug 27587: Use Basic auth on API tests - patrons_password.t 2021-02-08 17:09:34 +01:00
return_claims.t Bug 27004: Prevent claim resolution to fail 2021-01-04 13:29:47 +01:00
smtp_servers.t Bug 22343: Add exec flag on .t files 2020-10-05 11:14:32 +02:00
stockrotationstage.t Bug 27587: Use Basic auth on API tests - stockrotationstage.t 2021-02-08 17:09:34 +01:00
transfer_limits.t Bug 26633: (QA follow-up) Tests on error condition 2021-03-16 16:08:30 +01:00