From 0f336aaae4faa1adcd42b9f93a9f09f0ebe323e0 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 Signed-off-by: Hayley Mapley Signed-off-by: Katrin Fischer --- 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 0c82af0b06..3a91fc5d3d 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.11.0