From 05e2f3c438dd9ba100c017b9505c97d5ae18d020 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Tue, 26 Feb 2019 13:43:21 +0000 Subject: [PATCH] Bug 22451: Update test Test plan: prove t/db_dependent/Koha/Template/Plugin/Asset.t --- t/db_dependent/Koha/Template/Plugin/Asset.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/Template/Plugin/Asset.t b/t/db_dependent/Koha/Template/Plugin/Asset.t index 0c82af0..3a91fc5 100644 --- a/t/db_dependent/Koha/Template/Plugin/Asset.t +++ b/t/db_dependent/Koha/Template/Plugin/Asset.t @@ -4,10 +4,11 @@ use Modern::Perl; use Test::More tests => 16; use Template; +use Test::MockModule; -use C4::Context; - -my $version = C4::Context->preference('Version'); +my $version = "22.0509045"; +my $koha_module = Test::MockModule->new( "Koha" ); +$koha_module->mock( "version", sub { return "22.05.09.045" } ); my $template = Template->new({ PLUGIN_BASE => 'Koha::Template::Plugin', -- 2.1.4