Koha/t/db_dependent/api/v1
Tomas Cohen Arazi 40e841da98
Bug 14697: (follow-up) Rely on the UNIQUE constraint and return 409 for issue_id
This patch avoids querying the DB for an already existing
Koha::Checkouts::ReturnClaim with the same issue_id, now that there's a
UNIQUE constraint on it.

Also, 409 should be returned instead. Tests added for this changes.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/return_claims.t
=> SUCCESS: tests pass!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Lisette Scheer <lisetteslatah@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-31 12:04:55 +00:00
..
acquisitions_funds.t Bug 23843: Make funds endpoint tests more robust 2019-10-23 18:02:47 +01:00
acquisitions_vendors.t Bug 23858: (follow-up) Return code fix 2019-10-28 12:36:46 +00:00
auth.t
auth_authenticate_api_request.t
auth_basic.t
biblios.t Bug 23677: Unit tests 2019-10-08 14:33:34 +01:00
checkouts.t Bug 17005: Test for checked_in parameter 2019-10-08 14:33:39 +01:00
cities.t
clubs_holds.t Bug 19618: Add tests 2019-10-01 08:05:58 +01:00
holds.t Bug 23710: (follow-up) Add tests for new features in Koha::REST::V!::Holds::add and return error when hold date in future is not allowed and it is passed as parameter 2019-10-07 13:00:17 +01:00
illrequests.t
items.t Bug 23667: Add route to GET /items 2019-10-29 12:20:35 +00:00
libraries.t
oauth.t
patrons.t
patrons_accounts.t Bug 23805: Update 'Pay' to 'PAYMENT' for consistency 2019-10-24 17:35:20 +01:00
patrons_password.t
return_claims.t Bug 14697: (follow-up) Rely on the UNIQUE constraint and return 409 for issue_id 2019-10-31 12:04:55 +00:00
stockrotationstage.t