From 75275afbfe588e870ea833ce9cfb5b6f8c478ba3 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Wed, 13 Apr 2016 20:51:59 +0000 Subject: [PATCH] Bug 12478 : Fixing the tests in t/Koha_ElasticSearch_Indexer.t --- t/Koha_ElasticSearch_Indexer.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/Koha_ElasticSearch_Indexer.t b/t/Koha_ElasticSearch_Indexer.t index 6de6a32..d04a81f 100644 --- a/t/Koha_ElasticSearch_Indexer.t +++ b/t/Koha_ElasticSearch_Indexer.t @@ -25,7 +25,7 @@ use_ok('Koha::ElasticSearch::Indexer'); my $indexer; ok( - my $indexer = Koha::ElasticSearch::Indexer->new( + $indexer = Koha::ElasticSearch::Indexer->new( { 'nodes' => ['localhost:9200'], 'index' => 'mydb' @@ -43,9 +43,9 @@ $field = MARC::Field->new( '245', '', '', 'a' => 'Title' ); $marc_record->append_fields($field); my $records = [$marc_record]; -ok( my $converted = $indexer->convert_marc_to_json($records), +ok( my $converted = $indexer->_convert_marc_to_json($records), 'Convert some records' ); is( $converted->count, 1, 'One converted record' ); -ok( $indexer->update_index($records), 'Update Index' ); +ok( $indexer->update_index(undef,$records), 'Update Index' ); -- 2.1.4