]> git.koha-community.org Git - koha.git/commit
Bug 25411: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 14 May 2020 18:15:52 +0000 (15:15 -0300)
committerAleisha Amohia <aleishaamohia@hotmail.com>
Sun, 21 Jun 2020 23:48:04 +0000 (11:48 +1200)
commit8374d3bc8c569267b53b0d9da6a0c3fc11b6753f
tree3ead662b22cafb1ca557926b986d2165302cc3d4
parentd411d6b47c6e2ed311efc79ed622347614bb8299
Bug 25411: Regression tests

This patch adds tests the new RESTPublicAnonymousRequests syspref
doesn't apply to routes added by plugins.

It is up to the plugin developer to handle those conditions.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
=> FAIL: Notice the tests fail

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
t/lib/Koha/Plugin/Test.pm
t/lib/Koha/Plugin/Test/Controller.pm [new file with mode: 0644]