|
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 |
} |