Bug 27205: Check valid pickup location on PUT /holds/:hold_id
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 11 Dec 2020 20:55:40 +0000 (17:55 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Dec 2020 09:07:45 +0000 (10:07 +0100)
commit1bfe7ea16ef1346585211345ba89d18e303a0c32
tree263fd11bceba0b7edb8eb50c62ce2dc49d79abe0
parent865a1dab5c346920c61237c4b7593202328e04f8
Bug 27205: Check valid pickup location on PUT /holds/:hold_id

This patch adds a test for valid pickup locations when updating a hold
through the API.

Tests are adjusted to reflect this change.

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

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Holds.pm
t/db_dependent/api/v1/holds.t