]> git.koha-community.org Git - koha.git/commit
Bug 29121: Regression tests
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 27 Sep 2021 11:21:34 +0000 (08:21 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Oct 2021 14:28:55 +0000 (16:28 +0200)
commitedc8f4933585cae8986e4a1eae58cabf5ba07918
treeef0a2f284fb82283a0e72998472518a5f2e3916e
parentb937450ce5f39d6cc56c2fc4884b628c117bffb7
Bug 29121: Regression tests

This patch adds regression tests for broken ->install and ->upgrade
methods on plugins.

It adds two dummie plugins named BrokenInstall and BrokenUpgrade, for
convenience.

Tests are added to catch the warnings that will be logged when trying to
load this plugins on different scenarios.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
t/db_dependent/Koha/Plugins/Plugins.t
t/lib/Koha/Plugin/BrokenInstall.pm [new file with mode: 0644]
t/lib/Koha/Plugin/BrokenUpgrade.pm [new file with mode: 0644]