Bug 20624: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 2 May 2018 18:21:53 +0000 (15:21 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 May 2018 15:56:02 +0000 (12:56 -0300)
commitde0698076fee3061d3c37a8a922faf19a69336c8
tree4d3a217f2e7482e1e5eb64a011475687d6c27e8c
parent027aa4f3495a5b1b3fd778470cdcd1c8f623233b
Bug 20624: Unit tests

This patch adds tests to verify that disabling the RESTOAuth2ClientCredentials syspref
makes any request on the /api/v1/oauth/token using the
'client_credentials' grant fail with 'grant not implemented'.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/oauth.t
=> FAIL: Tests fail because the change is not implemented!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/api/v1/oauth.t