Koha/t/db_dependent/api/v1
Jonathan Druart bc05a90aa7
Bug 24543: Fix wrong test in api/v1/checkouts.t
In t/db_dependent/api/v1/checkouts.t we define a circulation rule with renewalperiod=7.
But then the expected due date is today+14 days.
However, at the beginning of the script, the due_date of the issue is today+14 days.

That highlight that the renewal period is not taken into account.

The circulation rule is created with renewalperiod and renewalsallowed,
however GetLoanLength check the existence of issuelength to return the rule.
GetLoanLength finally return the default rule, with renewalperiod=0

Note that this has been found working on bug 18936, code will be cleaned on that patchset.

Test plan:
 % prove t/db_dependent/api/v1/checkouts.t
must return green before and after this patch

Signed-off-by: Joonas Kylmälä <joonas.kylmala@helsinki.fi>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2020-01-30 15:35:35 +00:00
..
acquisitions_funds.t Bug 23843: Make funds endpoint tests more robust 2019-10-23 18:02:47 +01:00
acquisitions_orders.t Bug 24509: Fix API relared tests failing on MySQL8 2020-01-24 15:20:46 +00:00
acquisitions_vendors.t Bug 24321: Clean /acquisitions/vendors 2020-01-08 14:42:32 +00:00
auth.t
auth_authenticate_api_request.t Bug 18731: Make authenticate_api_request stash the embed structure 2020-01-09 16:25:23 +00:00
auth_basic.t
biblios.t Bug 24232: Regression tests 2019-12-20 12:07:09 +00:00
checkouts.t Bug 24543: Fix wrong test in api/v1/checkouts.t 2020-01-30 15:35:35 +00:00
cities.t Bug 24321: Clean /cities 2020-01-08 14:42:22 +00:00
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 24321: Clean /items 2020-01-08 14:42:48 +00:00
libraries.t Bug 24509: Fix API relared tests failing on MySQL8 2020-01-24 15:20:46 +00:00
oauth.t
patrons.t Bug 24509: Fix API relared tests failing on MySQL8 2020-01-24 15:20:46 +00:00
patrons_accounts.t Bug 24321: Clean /patrons/{patron_id}/account 2020-01-08 14:42:52 +00:00
patrons_password.t
return_claims.t Bug 14697: (QA follow-up) Organize tests in subtests 2019-10-31 12:05:14 +00:00
stockrotationstage.t