From 215955528f5b2a3f4c874b34fe84cb90a9693b3c Mon Sep 17 00:00:00 2001 From: Ere Maijala Date: Mon, 2 Jul 2018 15:23:51 +0300 Subject: [PATCH] Bug 19893: Fix Elasticsearch tests. https://bugs.koha-community.org/show_bug.cgi?id=19893 Sponsored-by: Gothenburg University Library Signed-off-by: Ere Maijala Signed-off-by: Martin Renvoize --- t/Koha/SearchEngine/Elasticsearch.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/Koha/SearchEngine/Elasticsearch.t b/t/Koha/SearchEngine/Elasticsearch.t index d31847ec08..55cf89620e 100644 --- a/t/Koha/SearchEngine/Elasticsearch.t +++ b/t/Koha/SearchEngine/Elasticsearch.t @@ -115,7 +115,7 @@ subtest 'get_elasticsearch_mappings() tests' => sub { subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests' => sub { - plan tests => 29; + plan tests => 30; t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); @@ -307,7 +307,9 @@ subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests' 'First document sum_item_price field should be set correctly' ); - ok(defined $docs->[0][1]->{marc_xml}, 'First document marc_xml field should be set'); + ok(defined $docs->[0][1]->{marc_data}, 'First document marc_data field should be set'); + + ok(defined $docs->[0][1]->{marc_format}, 'First document marc_format field should be set'); is(scalar @{$docs->[0][1]->{type_of_record}}, 1, 'First document type_of_record field should have one value'); is_deeply( -- 2.19.1