Bugzilla – Attachment 86035 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), 1014 bytes, created by
Josef Moravec
on 2019-03-04 20:36:18 UTC
(
hide
)
Description:
Bug 22451: Update test
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-03-04 20:36:18 UTC
Size:
1014 bytes
patch
obsolete
>From 92c045132faf2da3442fd061780db9ecbb893f92 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 >--- > 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
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