]> git.koha-community.org Git - koha.git/commit
Bug 22053: (QA follow-up) More tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 29 Apr 2019 18:21:32 +0000 (15:21 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 9 May 2019 18:54:45 +0000 (18:54 +0000)
commit4aa2e16ec18f50dfe7c00f1eafc87a7546b24f04
tree5f9ff51506bd8f87e09b965d2c5d014943b24cb9
parentd0e053e24d05ddc679a56d46ac121c3f4c89a21f
Bug 22053: (QA follow-up) More tests

This patch adds tests for:
- $plugin->enable and $plugin->disable are chainable (i.e. return $self)
- Disabled plugins don't inject routes

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t \
          t/db_dependent/Plugins.t
=> SUCCESS: Tests pass

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Plugins/Base.pm
t/db_dependent/Koha/REST/Plugin/PluginRoutes.t
t/db_dependent/Plugins.t