From 2c2601f6b50ac5a44e06dd191b52e518f0470b56 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 23 Apr 2024 18:57:45 +0000 Subject: [PATCH] Bug 36678: Adjust unit tests Signed-off-by: David Nind Signed-off-by: Martin Renvoize --- t/db_dependent/Koha/SearchEngine/Elasticsearch.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch.t index 11057146cfc..48cd2025d8c 100755 --- a/t/db_dependent/Koha/SearchEngine/Elasticsearch.t +++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch.t @@ -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}, -- 2.44.0