Lines 17-23
Link Here
|
17 |
|
17 |
|
18 |
use Modern::Perl; |
18 |
use Modern::Perl; |
19 |
|
19 |
|
20 |
use Test::More tests => 6; |
20 |
use Test::More; |
21 |
use Test::MockModule; |
21 |
use Test::MockModule; |
22 |
use t::lib::Mocks; |
22 |
use t::lib::Mocks; |
23 |
|
23 |
|
Lines 27-32
use Koha::Database;
Link Here
|
27 |
|
27 |
|
28 |
my $schema = Koha::Database->schema(); |
28 |
my $schema = Koha::Database->schema(); |
29 |
|
29 |
|
|
|
30 |
eval { require Koha::SearchEngine::Elasticsearch::Indexer; }; |
31 |
if ( $@ ) { |
32 |
my $es_dep_msg = "Required module Catmandu::Importer::MARC is not installed"; |
33 |
plan( skip_all => $es_dep_msg ); |
34 |
} |
35 |
else { |
36 |
plan tests => 6; |
37 |
} |
38 |
|
30 |
use_ok('Koha::SearchEngine::Elasticsearch::Indexer'); |
39 |
use_ok('Koha::SearchEngine::Elasticsearch::Indexer'); |
31 |
|
40 |
|
32 |
my $indexer; |
41 |
my $indexer; |
33 |
- |
|
|