Bugzilla – Attachment 87822 Details for
Bug 22451
Asset plugin is using the version from the DB
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22451: Update test
Bug-22451-Update-test.patch (text/plain), 1.06 KB, created by
Hayley Pelham
on 2019-04-11 22:55:24 UTC
(
hide
)
Description:
Bug 22451: Update test
Filename:
MIME Type:
Creator:
Hayley Pelham
Created:
2019-04-11 22:55:24 UTC
Size:
1.06 KB
patch
obsolete
>From 83a43604b1012a1704cd11645fde3c548cf4cf89 Mon Sep 17 00:00:00 2001 >From: Josef Moravec <josef.moravec@gmail.com> >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 <hayleymapley@catalyst.net.nz> >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22451
:
86034
|
86035
|
86036
|
86115
|
86116
|
86117
|
87821
|
87822
|
87823
|
87897
|
87899
|
87900