Bugzilla – Attachment 159066 Details for
Bug 33348
Show authority heading use with Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33348: Tests
Bug-33348-Tests.patch (text/plain), 1.81 KB, created by
Aleisha Amohia
on 2023-11-16 21:39:14 UTC
(
hide
)
Description:
Bug 33348: Tests
Filename:
MIME Type:
Creator:
Aleisha Amohia
Created:
2023-11-16 21:39:14 UTC
Size:
1.81 KB
patch
obsolete
>From 64de7da456e3f670c86dccef6373eaf080a308ba Mon Sep 17 00:00:00 2001 >From: Aleisha Amohia <aleishaamohia@hotmail.com> >Date: Thu, 16 Nov 2023 21:38:35 +0000 >Subject: [PATCH] Bug 33348: Tests > >prove Koha/SearchEngine/Elasticsearch/Search.t >--- > t/Koha/SearchEngine/Elasticsearch/Search.t | 12 +++++++++++- > 1 file changed, 11 insertions(+), 1 deletion(-) > >diff --git a/t/Koha/SearchEngine/Elasticsearch/Search.t b/t/Koha/SearchEngine/Elasticsearch/Search.t >index cae1b2a96e6..dd579b5a53a 100755 >--- a/t/Koha/SearchEngine/Elasticsearch/Search.t >+++ b/t/Koha/SearchEngine/Elasticsearch/Search.t >@@ -24,7 +24,7 @@ use t::lib::Mocks; > use_ok('Koha::SearchEngine::Elasticsearch::Search'); > > subtest 'search_auth_compat' => sub { >- plan tests => 4; >+ plan tests => 7; > > t::lib::Mocks::mock_preference( 'QueryRegexEscapeOptions', 'dont_escape' ); > t::lib::Mocks::mock_preference( 'SearchEngine', 'Elasticsearch' ); >@@ -65,6 +65,11 @@ subtest 'search_auth_compat' => sub { > $marc_record->append_fields( > MARC::Field->new( '001', 'Wrong001Number' ), > ); >+ $marc_record->append_fields( >+ MARC::Field->new( >+ '008', '100803t2009 aba||||| ||| 00| 0 d' >+ ), >+ ); > return { > hits => { > hits => [ >@@ -86,6 +91,11 @@ subtest 'search_auth_compat' => sub { > > is( @$results[0]->{authid}, '8675309', 'We get the expected record _id and not the 001' ); > >+ t::lib::Mocks::mock_preference( 'ShowHeadingUse', 1 ); >+ is( @$results[0]->{main}, 1, 'Valid main heading with ShowHeadingUse' ); >+ is( @$results[0]->{subject}, >+ undef, 'Valid main heading with ShowHeadingUse' ); >+ is( @$results[0]->{series}, 1, 'Valid main heading with ShowHeadingUse' ); > }; > > 1; >-- >2.30.2
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33348
:
148791
|
150440
|
150479
|
150481
|
150482
|
152570
|
152571
|
159066
|
171601
|
171602
|
171603
|
171686
|
171687
|
171688
|
171875
|
171876
|
173987
|
173988
|
173989