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

(-)a/t/db_dependent/ImportBatch.t (-3 / +4 lines)
Lines 1-7 Link Here
1
#!/usr/bin/perl
1
#!/usr/bin/perl
2
2
3
use Modern::Perl;
3
use Modern::Perl;
4
use Test::More tests => 16;
4
use Test::More tests => 17;
5
use utf8;
5
use utf8;
6
use File::Basename;
6
use File::Basename;
7
use File::Temp qw/tempfile/;
7
use File::Temp qw/tempfile/;
Lines 10-21 use t::lib::Mocks; Link Here
10
use t::lib::TestBuilder;
10
use t::lib::TestBuilder;
11
11
12
use Koha::Database;
12
use Koha::Database;
13
use Koha::Plugins;
14
13
15
BEGIN {
14
BEGIN {
16
    # Mock pluginsdir before loading Plugins module
15
    # Mock pluginsdir before loading Plugins module
17
    my $path = dirname(__FILE__) . '/../lib';
16
    my $path = dirname(__FILE__) . '/../lib/plugins';
18
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
17
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
18
19
    use_ok('Koha::Plugins');
19
    use_ok('C4::ImportBatch', qw( AddImportBatch GetImportBatch AddBiblioToBatch AddItemsToImportBiblio GetRecordFromImportBiblio SetMatchedBiblionumber GetImportBiblios GetItemNumbersFromImportBatch CleanBatch DeleteBatch RecordsFromMarcPlugin ));
20
    use_ok('C4::ImportBatch', qw( AddImportBatch GetImportBatch AddBiblioToBatch AddItemsToImportBiblio GetRecordFromImportBiblio SetMatchedBiblionumber GetImportBiblios GetItemNumbersFromImportBatch CleanBatch DeleteBatch RecordsFromMarcPlugin ));
20
}
21
}
21
22
(-)a/t/db_dependent/Koha/Plugins/authority_hooks.t (-1 / +1 lines)
Lines 30-36 use t::lib::TestBuilder; Link Here
30
30
31
BEGIN {
31
BEGIN {
32
    # Mock pluginsdir before loading Plugins module
32
    # Mock pluginsdir before loading Plugins module
33
    my $path = dirname(__FILE__) . '/../../../lib';
33
    my $path = dirname(__FILE__) . '/../../../lib/plugins';
34
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
34
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
35
35
36
    use_ok('Koha::Plugins');
36
    use_ok('Koha::Plugins');
(-)a/t/db_dependent/Koha/REST/Plugin/PluginRoutes.t (-1 / +1 lines)
Lines 32-38 use Mojolicious::Lite; Link Here
32
32
33
BEGIN {
33
BEGIN {
34
    # Mock pluginsdir before loading Plugins module
34
    # Mock pluginsdir before loading Plugins module
35
    my $path = dirname(__FILE__) . '/../../../../lib';
35
    my $path = dirname(__FILE__) . '/../../../../lib/plugins';
36
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
36
    t::lib::Mocks::mock_config( 'pluginsdir', $path );
37
}
37
}
38
38
(-)a/t/db_dependent/Koha/Template/Plugin/KohaPlugins.t (-2 / +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__) . '/../../../../lib' );
19
    push( @INC, dirname(__FILE__) . '/../../../../lib/plugins' );
20
20
21
    use_ok('Koha::Plugins');
21
    use_ok('Koha::Plugins');
22
    use_ok('Koha::Plugins::Handler');
22
    use_ok('Koha::Plugins::Handler');
23
- 

Return to bug 29273