Koha/t/db_dependent/api/v1
Tomas Cohen Arazi e04654052e
Bug 23584: Add the controller method and tests
This patchset adds endpoints for the patrons to change their privacy
settings regarding their guarantors.

The following endpoints are added:

  PUT /public/patrons/:patron_id/guarantors/can_see_charges
  PUT /public/patrons/:patron_id/guarantors/can_see_checkouts

They can only be used by the patron themselves with valid sessions. And
enforce the AllowPatronToSetCheckoutsVisibilityForGuarantor and
AllowPatronToSetFinesVisibilityForGuarantor system preferences when
required.

All this is covered by unit tests.

To test:
1) Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-23 10:52:50 +01:00
..
acquisitions_funds.t Bug 19661: (follow-up) Use Basic auth in tests 2019-03-22 19:40:37 +00:00
acquisitions_vendors.t
auth.t Bug 22061: Add a /public namespace that can be switched on/off 2019-01-28 15:45:54 +00:00
auth_authenticate_api_request.t Bug 22071: Regression tests 2019-01-04 03:13:39 +00:00
auth_basic.t Bug 22132: (QA follow-up) set_password now expects a hashref 2019-01-30 18:57:18 +00:00
biblios.t Bug 15496: (QA follow-up) Change success status on api 2019-04-26 12:06:58 +00:00
checkouts.t Bug 17003: (QA follow-up) Fix the number of tests 2019-07-01 16:18:46 +01:00
cities.t Bug 22227: Make GET /cities staff only 2019-02-15 18:42:46 +00:00
holds.t Bug 22206: (follow-up) Voted RFC changes 2019-03-15 19:35:30 +00:00
illrequests.t Bug 18589: (follow-up) Add borrowernumber test 2019-03-22 20:21:49 +00:00
items.t Bug 16825: Add API route for getting an item 2019-09-12 16:41:09 +01:00
libraries.t Bug 16497: Refactor tests using BASIC authentication 2019-02-19 13:52:14 +00:00
oauth.t Bug 23146: Unit tests 2019-06-24 16:05:24 +01:00
patrons.t Bug 23584: Add the controller method and tests 2019-09-23 10:52:50 +01:00
patrons_accounts.t Bug 22600: Update Tests adding 'interface' as needed 2019-04-10 19:43:11 +00:00
patrons_password.t Bug 22483: (follow-up) Fix wrong tests higlighted by bug 2019-03-08 15:26:05 -03:00
stockrotationstage.t