]> git.koha-community.org Git - koha.git/commit
Bug 26633: (QA follow-up) Tests on error condition
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 3 Nov 2020 14:06:58 +0000 (11:06 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Mar 2021 15:08:30 +0000 (16:08 +0100)
commitf91ae728bf1b7f21389328de97680a9ba1a0bc53
tree880c7a357366892c14224d9600c8e5413f10cbbc
parent953980a5dd1866bc24316be3dc0a37736466221f
Bug 26633: (QA follow-up) Tests on error condition

This patch highlights a problem with the try/catch conditions in the
ad() controlled method. Tests are added, and the controller is fixed to
reflect the right behaviour.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/transfer_limits.t
=> SUCCESS: Tests pass! 409 is returned as appropriate!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/TransferLimits.pm
t/db_dependent/api/v1/transfer_limits.t