]> git.koha-community.org Git - koha.git/commit
Bug 20612: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 18 Apr 2018 16:32:34 +0000 (13:32 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 May 2018 15:56:01 +0000 (12:56 -0300)
commit8eb9239a340e662c42f8686a4d29154cc54ec5e4
tree0ede58dc18d16ca7f13e6d395b68aa2a52e933dc
parentef7a900742cf8c7bc063cc6df74b922db235b8b6
Bug 20612: Unit tests

This patch makes the oauth.t tests leverage on the new Koha::ApiKey(s)
classes. It adds tests for expired tokens too.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/oauth.t
=> FAIL: Tests should fail without the rest of the patches.

Sponsored-by: ByWater Solutions
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Benjamin Rokseth <benjamin.rokseth@deichman.no>
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