]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 22 May 2020 08:03:51 +0000 (09:03 +0100)
commit84bd1ac370db07d2b05c1c39433cb7963a98be71
tree98d2ed680778008441c5393adb94f69184a31b21
parent5f9cc8ada9a3186265f7c4fff1529775f03ac969
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: Martin Renvoize <martin.renvoize@ptfs-europe.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]