Bug 33447: Make *->pickup_locations methods throw an exception on missing parameter
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 20 Apr 2023 18:04:29 +0000 (15:04 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 20 Apr 2023 18:48:32 +0000 (15:48 -0300)
commit981eeff7ef1a014b848a52ee9e6e20de106048e3
tree6d5b70cebcb8af0198b16aa37131ba7c1746ff86
parentef8adf34fde2352680934ba6a36de89e3f905a36
Bug 33447: Make *->pickup_locations methods throw an exception on missing parameter

This patch fixes the FIXME for making the methods throw an exception.

Tests are added, and POD is adapted as well.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/db_dependent/api/v1/patrons* \
           t/db_dependent/api/v1/holds.t \
           t/db_dependent/Reserves* \
           t/db_dependent/Hold* \
           t/db_dependent/Koha/Hold* \
           t/db_dependent/Items*

=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Biblio.pm
Koha/Biblios.pm
Koha/Item.pm
t/db_dependent/Koha/Biblio.t
t/db_dependent/Koha/Biblios.t
t/db_dependent/Koha/Item.t