Koha-clms/Koha/REST
Tomas Cohen Arazi e846641edd
Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType
This patch adds tests for the different cases of `BranchTransferLimitsType`.
It also adds tests for the situation of the consumer sending both limit
criterias on the request.

The controller gets adjusted for this new behavior and the spec gets
documentation added about this.

Bonus: tests are added the right guidelines code, and
BranchTransferLimitsType gets mocked to avoid failures due to existing
data.

To test:
1. Apply this patches
2. Run:
   $ ktd --shell
  k$ qa
=> SUCCESS: All green, and tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Fixed a typo in one of the return messages

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-03-19 10:25:01 +01:00
..
Plugin Bug 29523: Pass the logged user around and use for validating 2023-10-27 16:40:44 -03:00
V1 Bug 36329: Make POST /transfer_limits/batch honor BranchTransferLimitsType 2024-03-19 10:25:01 +01:00
V1.pm Bug 34271: Remove a few Logger statements from REST API 2023-10-18 10:26:03 -03:00