Bugzilla – Attachment 136695 Details for
Bug 31061
OPACSuppress behavior with Elasticsearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31061: Fix test suite
Bug-31061-Fix-test-suite.patch (text/plain), 1.61 KB, created by
Fridolin Somers
on 2022-06-28 20:21:50 UTC
(
hide
)
Description:
Bug 31061: Fix test suite
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2022-06-28 20:21:50 UTC
Size:
1.61 KB
patch
obsolete
>From ce77afbf24461466fd92e1e05ec00363f29a3eb2 Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Tue, 28 Jun 2022 10:04:08 -1000 >Subject: [PATCH] Bug 31061: Fix test suite > >--- > .../Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >index 4e8964e682..9274cfa9b2 100755 >--- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >+++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t >@@ -460,15 +460,15 @@ subtest 'build_query tests' => sub { > ( undef, $query ) = $qb->build_query_compat( undef, ['title:"donald duck"'], undef, undef, undef, undef, undef, { suppress => 1 } ); > is( > $query->{query}{query_string}{query}, >- '(title:"donald duck") AND suppress:false', >- "query of specific field is added AND suppress:false" >+ '(title:"donald duck") AND NOT(suppress:1)', >+ "suppress part of the query added correctly" > ); > > ( undef, $query, $simple_query, $query_cgi, $query_desc ) = $qb->build_query_compat( undef, ['title:"donald duck"'], undef, undef, undef, undef, undef, { suppress => 0 } ); > is( > $query->{query}{query_string}{query}, > '(title:"donald duck")', >- "query of specific field is not added AND suppress:0" >+ "suppress part of the query not added" > ); > > ( undef, $query ) = $qb->build_query_compat( ['AND'], ['title:"donald duck"'], undef, ['author:Dillinger Escaplan'] ); >-- >2.35.3
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 31061
:
136695
|
136696
|
136697
|
136799