Bug 36678: Adjust unit tests

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 93a647fa90)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Nick Clemens 2024-04-23 18:57:45 +00:00 committed by Fridolin Somers
parent fcc65787aa
commit d3b223c903

View file

@ -507,7 +507,7 @@ subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests'
);
is_deeply(
$docs->[3]->{'title-no-punctuation'},
[ 'The Titles the thing ', 'fourth record', 'The Titles the thing fourth record' ],
[ 'The Titles the thing ', 'Titles the thing ', 'fourth record', 'The Titles the thing fourth record' ],
'Fourth document title-no-punctuation field should be set correctly'
);
@ -600,8 +600,8 @@ subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests'
# Nonfiling characters for sort fields
is_deeply(
$docs->[0]->{uniform_title},
['The uniform title with nonfiling indicator'],
'First document uniform_title field should contain the title verbatim'
[ 'The uniform title with nonfiling indicator', 'uniform title with nonfiling indicator' ],
'First document uniform_title field should contain the title verbatim and with four initial characters removed'
);
is_deeply(
$docs->[0]->{uniform_title__sort},