]> git.koha-community.org Git - koha.git/commit
Bug 24862: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 Mar 2020 14:44:03 +0000 (11:44 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 16 Mar 2020 14:44:02 +0000 (14:44 +0000)
commit0547ad34dfe01ca7d7660df59e29bc30fdf3cf1d
tree7b880483bd0bee58e0e33d32850d0cff2a444437
parent6c3a2b474806d1499780966bdb35c0ddabc609d0
Bug 24862: Regression tests

This patch introduces tests for the expected behaviour on API routes
that expect a logged in user, but the request is made with an anonymous
session cookie.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/auth_authenticate_api_request.t
=> FAIL: Tests fail because the situation is not handled correctly in
the code

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/api/v1/auth_authenticate_api_request.t