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:
parent
fcc65787aa
commit
d3b223c903
1 changed files with 3 additions and 3 deletions
|
@ -507,7 +507,7 @@ subtest 'Koha::SearchEngine::Elasticsearch::marc_records_to_documents () tests'
|
||||||
);
|
);
|
||||||
is_deeply(
|
is_deeply(
|
||||||
$docs->[3]->{'title-no-punctuation'},
|
$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'
|
'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
|
# Nonfiling characters for sort fields
|
||||||
is_deeply(
|
is_deeply(
|
||||||
$docs->[0]->{uniform_title},
|
$docs->[0]->{uniform_title},
|
||||||
['The uniform title with nonfiling indicator'],
|
[ 'The uniform title with nonfiling indicator', 'uniform title with nonfiling indicator' ],
|
||||||
'First document uniform_title field should contain the title verbatim'
|
'First document uniform_title field should contain the title verbatim and with four initial characters removed'
|
||||||
);
|
);
|
||||||
is_deeply(
|
is_deeply(
|
||||||
$docs->[0]->{uniform_title__sort},
|
$docs->[0]->{uniform_title__sort},
|
||||||
|
|
Loading…
Reference in a new issue