Bugzilla – Attachment 75311 Details for
Bug 20764
t/Koha_Template_Plugin_KohaPlugins.t is DB dependent
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20764: (QA follow-up) Fix path to sample plugins
Bug-20764-QA-follow-up-Fix-path-to-sample-plugins.patch (text/plain), 2.16 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-05-14 15:10:21 UTC
(
hide
)
Description:
Bug 20764: (QA follow-up) Fix path to sample plugins
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-05-14 15:10:21 UTC
Size:
2.16 KB
patch
obsolete
>From 79939a9b2d44d0462750904b4d626788979c7456 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 14 May 2018 12:03:32 -0300 >Subject: [PATCH] Bug 20764: (QA follow-up) Fix path to sample plugins > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > t/db_dependent/ImportBatch.t | 5 ++--- > t/db_dependent/Koha_Template_Plugin_KohaPlugins.t | 2 +- > t/{ => lib}/Koha/Plugin/MarcFieldValues.pm | 0 > t/{ => lib}/Koha/Plugin/Test.pm | 0 > 4 files changed, 3 insertions(+), 4 deletions(-) > rename t/{ => lib}/Koha/Plugin/MarcFieldValues.pm (100%) > rename t/{ => lib}/Koha/Plugin/Test.pm (100%) > >diff --git a/t/db_dependent/ImportBatch.t b/t/db_dependent/ImportBatch.t >index 788be3fc6d..f42e0d8822 100644 >--- a/t/db_dependent/ImportBatch.t >+++ b/t/db_dependent/ImportBatch.t >@@ -2,7 +2,7 @@ > > use Modern::Perl; > use Test::More tests => 14; >-use Cwd qw(abs_path); >+use File::Basename; > use File::Temp qw/tempfile/; > > use t::lib::Mocks; >@@ -13,8 +13,7 @@ use Koha::Plugins; > > BEGIN { > # Mock pluginsdir before loading Plugins module >- my $path = abs_path(__FILE__); >- $path =~ s/(\/[^\/]+){2}$//; # remove db_dependent and filename >+ my $path = dirname(__FILE__) . '/../lib'; > t::lib::Mocks::mock_config( 'pluginsdir', $path ); > use_ok('C4::ImportBatch'); > } >diff --git a/t/db_dependent/Koha_Template_Plugin_KohaPlugins.t b/t/db_dependent/Koha_Template_Plugin_KohaPlugins.t >index 723f07c4ad..8f90125cc9 100755 >--- a/t/db_dependent/Koha_Template_Plugin_KohaPlugins.t >+++ b/t/db_dependent/Koha_Template_Plugin_KohaPlugins.t >@@ -16,7 +16,7 @@ use C4::Context; > use t::lib::Mocks; > > BEGIN { >- push( @INC, dirname(__FILE__) ); >+ push( @INC, dirname(__FILE__) . '/../lib' ); > > use_ok('Koha::Plugins'); > use_ok('Koha::Plugins::Handler'); >diff --git a/t/Koha/Plugin/MarcFieldValues.pm b/t/lib/Koha/Plugin/MarcFieldValues.pm >similarity index 100% >rename from t/Koha/Plugin/MarcFieldValues.pm >rename to t/lib/Koha/Plugin/MarcFieldValues.pm >diff --git a/t/Koha/Plugin/Test.pm b/t/lib/Koha/Plugin/Test.pm >similarity index 100% >rename from t/Koha/Plugin/Test.pm >rename to t/lib/Koha/Plugin/Test.pm >-- >2.17.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 20764
:
75303
|
75310
| 75311 |
75314
|
75317
|
75318