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

(-)a/t/Koha_ElasticSearch_Indexer.t (-4 / +3 lines)
Lines 25-31 use_ok('Koha::ElasticSearch::Indexer'); Link Here
25
25
26
my $indexer;
26
my $indexer;
27
ok(
27
ok(
28
    my $indexer = Koha::ElasticSearch::Indexer->new(
28
    $indexer = Koha::ElasticSearch::Indexer->new(
29
        {
29
        {
30
            'nodes' => ['localhost:9200'],
30
            'nodes' => ['localhost:9200'],
31
            'index' => 'mydb'
31
            'index' => 'mydb'
Lines 43-51 $field = MARC::Field->new( '245', '', '', 'a' => 'Title' ); Link Here
43
$marc_record->append_fields($field);
43
$marc_record->append_fields($field);
44
44
45
my $records = [$marc_record];
45
my $records = [$marc_record];
46
ok( my $converted = $indexer->convert_marc_to_json($records),
46
ok( my $converted = $indexer->_convert_marc_to_json($records),
47
    'Convert some records' );
47
    'Convert some records' );
48
48
49
is( $converted->count, 1, 'One converted record' );
49
is( $converted->count, 1, 'One converted record' );
50
50
51
ok( $indexer->update_index($records), 'Update Index' );
51
ok( $indexer->update_index(undef,$records), 'Update Index' );
52
- 

Return to bug 12478