Bugzilla – Attachment 87899 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.11 KB, created by
Katrin Fischer
on 2019-04-12 12:35:37 UTC
(
hide
)
Description:
Bug 22451: Update test
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2019-04-12 12:35:37 UTC
Size:
1.11 KB
patch
obsolete
>From 0f336aaae4faa1adcd42b9f93a9f09f0ebe323e0 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> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > 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