Koha-clms/t/db_dependent/api/v1
Jonathan Druart 265f0c4041 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>

Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
2020-02-10 23:26:00 +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 24232: Regression tests 2020-01-03 22:35:35 +00:00
checkouts.t Bug 24543: Fix wrong test in api/v1/checkouts.t 2020-02-10 23:26:00 +00:00
cities.t Bug 23859: Update tests to new style 2019-11-01 08:48:18 +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 Bug 18589: (follow-up) Add borrowernumber test 2019-03-22 20:21:49 +00:00
items.t Bug 23667: Add route to GET /items 2019-10-29 12:20:35 +00:00
libraries.t
…
oauth.t Bug 23146: Unit tests 2019-06-24 16:05:24 +01:00
patrons.t Bug 23860: Update tests to new style 2019-11-01 08:48:39 +00:00
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: (QA follow-up) Organize tests in subtests 2019-10-31 12:05:14 +00:00
stockrotationstage.t
…