Lines 115-121
subtest 'get_elasticsearch_mappings() tests' => sub {
Link Here
|
115 |
|
115 |
|
116 |
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests' => sub { |
116 |
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests' => sub { |
117 |
|
117 |
|
118 |
plan tests => 29; |
118 |
plan tests => 30; |
119 |
|
119 |
|
120 |
t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); |
120 |
t::lib::Mocks::mock_preference('marcflavour', 'MARC21'); |
121 |
|
121 |
|
Lines 307-313
subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests'
Link Here
|
307 |
'First document sum_item_price field should be set correctly' |
307 |
'First document sum_item_price field should be set correctly' |
308 |
); |
308 |
); |
309 |
|
309 |
|
310 |
ok(defined $docs->[0][1]->{marc_xml}, 'First document marc_xml field should be set'); |
310 |
ok(defined $docs->[0][1]->{marc_data}, 'First document marc_data field should be set'); |
|
|
311 |
|
312 |
ok(defined $docs->[0][1]->{marc_format}, 'First document marc_format field should be set'); |
311 |
|
313 |
|
312 |
is(scalar @{$docs->[0][1]->{type_of_record}}, 1, 'First document type_of_record field should have one value'); |
314 |
is(scalar @{$docs->[0][1]->{type_of_record}}, 1, 'First document type_of_record field should have one value'); |
313 |
is_deeply( |
315 |
is_deeply( |
314 |
- |
|
|