From ce77afbf24461466fd92e1e05ec00363f29a3eb2 Mon Sep 17 00:00:00 2001 From: Fridolin Somers 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