Bug 22451: Update test

Test plan:
prove t/db_dependent/Koha/Template/Plugin/Asset.t

Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit be3c2abbdc)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Josef Moravec 2019-02-26 13:43:21 +00:00 committed by Martin Renvoize
parent 1eae74da56
commit ddd6d66f09
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 4 additions and 3 deletions

View File

@ -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',