Bug 26271: Add failing test to reveal issue with patrons API endpoint
authorJoonas Kylmälä <joonas.kylmala@helsinki.fi>
Fri, 21 Aug 2020 13:21:42 +0000 (16:21 +0300)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 14 Sep 2020 21:35:17 +0000 (21:35 +0000)
commit00570ae9690a33a9be62dc51aaffa9d3774281f9
tree8fa11e2c7f8371874796a88b388792d374bd3774
parent7a8b7ba2f42c9709301b321f3c8e05bc0af78487
Bug 26271: Add failing test to reveal issue with patrons API endpoint

When manager_id is null/undef the API returns error code 500.

To test:
 1) Notice failure when running
    prove t/db_dependent/api/v1/patrons_accounts.t

Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 898cd3b82ee84682bdfad1c177e2eb6ae0881428)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
t/db_dependent/api/v1/patrons_accounts.t