]> git.koha-community.org Git - koha.git/commit
Bug 14708: (QA follow-up) Add tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 5 Nov 2020 14:53:43 +0000 (11:53 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 6 Nov 2020 08:40:26 +0000 (09:40 +0100)
commitb092bdd20d94a516db0b7c4533149ac52f96aac5
tree89f82d5460cbc823e6ddc31a34f71f1962b661d8
parent1e37d9c5f7af0f7e0efb226c171da52f03bc80eb
Bug 14708: (QA follow-up) Add tests

This patch adds tests for the change. It also simplifies the delete()
method structure a bit. It fixes the error 500 the tests were raising.

To test:
1. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Tests fail!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass! The new behaviour (code 403) is tested!
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/Patrons.pm
t/db_dependent/api/v1/patrons.t