]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 29 Nov 2018 12:25:16 +0000 (13:25 +0100)
commit8a5f84725faf27f092dc12731f8d11783fd4f717
tree5a7796a41380e4615e13e9b8061fe6af40a1082e
parentbfc78771856c8ae074202922d3d9f7594cb2b514
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>
(cherry picked from commit f243f8f0123a29752f37df0cc8ad25a49ba066e6)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.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