View | Details | Raw Unified | Return to bug 20764
Collapse All | Expand All

(-)a/t/db_dependent/ImportBatch.t (-3 / +2 lines)
Lines 2-8 Link Here
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
use Test::More tests => 14;
4
use Test::More tests => 14;
5
use Cwd qw(abs_path);
5
use File::Basename;
6
use File::Temp qw/tempfile/;
6
use File::Temp qw/tempfile/;
7
7
8
use t::lib::Mocks;
8
use t::lib::Mocks;
Lines 13-20 use Koha::Plugins; Link Here
13
13
14
BEGIN {
14
BEGIN {
15
    # Mock pluginsdir before loading Plugins module
15
    # Mock pluginsdir before loading Plugins module
16
    my $path = abs_path(__FILE__);
16
    my $path = dirname(__FILE__) . '/../lib';
17
    $path =~ s/(\/[^\/]+){2}$//; # remove db_dependent and filename
18
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
17
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
19
    use_ok('C4::ImportBatch');
18
    use_ok('C4::ImportBatch');
20
}
19
}
(-)a/t/db_dependent/Koha_Template_Plugin_KohaPlugins.t (-1 / +1 lines)
Lines 16-22 use C4::Context; Link Here
16
use t::lib::Mocks;
16
use t::lib::Mocks;
17
17
18
BEGIN {
18
BEGIN {
19
    push( @INC, dirname(__FILE__) );
19
    push( @INC, dirname(__FILE__) . '/../lib' );
20
20
21
    use_ok('Koha::Plugins');
21
    use_ok('Koha::Plugins');
22
    use_ok('Koha::Plugins::Handler');
22
    use_ok('Koha::Plugins::Handler');

Return to bug 20764