From 5c41db3293ba4501af1fa1bbcb73cc3c579dcc31 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Fri, 10 May 2019 11:52:34 -0300 Subject: [PATCH] Bug 22053: (QA follow-up) Fix tests Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/ImportBatch.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t index f42e0d8822..9f66e42261 100644 --- a/t/db_dependent/ImportBatch.t +++ b/t/db_dependent/ImportBatch.t @@ -187,7 +187,8 @@ subtest "RecordsFromMarcPlugin" => sub { close $fh; t::lib::Mocks::mock_config( 'enable_plugins', 1 ); - my ( $plugin ) = Koha::Plugins->new->GetPlugins({ metadata => { name => 'MarcFieldValues' } }); + t::lib::Mocks::mock_preference( 'EnablePlugins', 1 ); + my ($plugin) = Koha::Plugins->new->GetPlugins({ all => 1, metadata => { name => 'MarcFieldValues' } }); isnt( $plugin, undef, "Plugin found" ); my $records = C4::ImportBatch::RecordsFromMarcPlugin( $name, ref $plugin, 'UTF-8' ); is( @$records, 2, 'Two results returned' ); -- 2.21.0