]> git.koha-community.org Git - koha.git/commit
Bug 21116: Unit tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Aug 2018 19:24:09 +0000 (16:24 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 20 Sep 2018 11:09:14 +0000 (12:09 +0100)
commitf243f8f0123a29752f37df0cc8ad25a49ba066e6
tree4b4e81d01930bf01e7a2d913c0b27d3a1bff5f55
parent0f45f3afdf67193ec849f72955b6de4fbeb17db0
Bug 21116: Unit tests

This path implements unit tests for the route-from-plugin development.
It adds the required methods to the Koha::Plugin::Test plugin
distributed along with the tests. A second plugin implementing invalid
OpenAPI specs is added (Koha::Plugin::BadAPIRoute).

Edit: I made terminology changes to make it less rude.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 46c992948ea28ae2bebc7f9042df6434319b80bf)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
t/db_dependent/Koha/REST/Plugin/PluginRoutes.t [new file with mode: 0644]
t/lib/Koha/Plugin/BadAPIRoute.pm [new file with mode: 0644]
t/lib/Koha/Plugin/Test.pm