Bug 29672: Fix test t/db_dependent/Koha/Plugins/Plugins.t
Table plugin_data was not always cleared Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
1e80e4a7e0
commit
30efb547c5
|
|
@ -93,6 +93,7 @@ subtest 'more call() tests' => sub {
|
|||
$schema->storage->txn_begin;
|
||||
# Temporarily remove any installed plugins data
|
||||
Koha::Plugins::Methods->delete;
|
||||
$schema->resultset('PluginData')->delete();
|
||||
|
||||
t::lib::Mocks::mock_config('enable_plugins', 1);
|
||||
my $plugins = Koha::Plugins->new({ enable_plugins => 1 });
|
||||
|
|
@ -198,6 +199,7 @@ subtest 'is_enabled() tests' => sub {
|
|||
|
||||
$schema->storage->txn_begin;
|
||||
Koha::Plugins::Methods->delete;
|
||||
$schema->resultset('PluginData')->delete;
|
||||
|
||||
warning_is { Koha::Plugins->new( { enable_plugins => 1 } )->InstallPlugins(); } undef;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue