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:
Julian Maurice 2022-11-02 09:46:45 +01:00 committed by Tomas Cohen Arazi
parent 1e80e4a7e0
commit 30efb547c5
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 0 deletions

View File

@ -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;