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

(-)a/t/db_dependent/Koha_Elasticsearch_Indexer.t (-3 / +2 lines)
Lines 74-80 subtest 'create_index() tests' => sub { Link Here
74
74
75
    my $indexer;
75
    my $indexer;
76
    ok(
76
    ok(
77
        $indexer = Koha::SearchEngine::Elasticsearch::Indexer->new({ 'index' => 'biblios' }),
77
        $indexer = Koha::SearchEngine::Elasticsearch::Indexer->new({ 'index' => 'biblios_test' }),
78
        'Creating a new indexer object'
78
        'Creating a new indexer object'
79
    );
79
    );
80
    ok(
80
    ok(
Lines 145-151 subtest '_convert_marc_to_json() tests' => sub { Link Here
145
    );
145
    );
146
    my @records = ( $marc_record );
146
    my @records = ( $marc_record );
147
147
148
    my $importer = Koha::SearchEngine::Elasticsearch::Indexer->new({ index => 'biblios' });
148
    my $importer = Koha::SearchEngine::Elasticsearch::Indexer->new({ index => 'biblios_test' });
149
    my $conv = $importer->_convert_marc_to_json( \@records )->next();
149
    my $conv = $importer->_convert_marc_to_json( \@records )->next();
150
    is( $conv->{author}[0][0], "Author", "First mapped author should be 100a");
150
    is( $conv->{author}[0][0], "Author", "First mapped author should be 100a");
151
    is( $conv->{author}[1][0], "Corp Author", "Second mapped author should be 110a");
151
    is( $conv->{author}[1][0], "Corp Author", "Second mapped author should be 110a");
152
- 

Return to bug 20248