Bug 20764: (QA follow-up) Fix path to sample plugins

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3523a01a07)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2018-05-14 12:03:32 -03:00 committed by Fridolin Somers
parent f1a0527c97
commit 109b13dc6d
4 changed files with 3 additions and 4 deletions

View File

@ -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');
}

View File

@ -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');