Bug 27947: (QA follow-up) Make parameters a hashref
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 5 Oct 2021 14:10:10 +0000 (11:10 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Oct 2021 08:09:54 +0000 (10:09 +0200)
commite85290a7032221d61c0473a28138752cba415e1a
treeb3244d4c5b8ae27ec67cd21b4b4c25e27137aae6
parent2fccde3acdd883a6df4ff0d0f28069fca16124db
Bug 27947: (QA follow-up) Make parameters a hashref

This patch makes the Koha::ArticleRequest->cancel parameters into a
hashref. (Missing) tests are added for those parameters being set as
well.

Calls to ->cancel are updated.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/ArticleRequest.t \
           t/db_dependent/api/v1/article_requests.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/ArticleRequest.pm
Koha/REST/V1/ArticleRequests.pm
svc/article_request
t/db_dependent/Koha/ArticleRequest.t