From e90040d92ad8bfef8d5eae0874a7133cff5a4b86 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Fri, 9 Aug 2019 13:51:46 +0200 Subject: [PATCH] Bug 22997: Unit text Run prove t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t --- t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t index d3656eabc9..652d491330 100644 --- a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t +++ b/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t @@ -82,7 +82,7 @@ $se->mock( 'get_elasticsearch_mappings', sub { }); subtest 'build_authorities_query_compat() tests' => sub { - plan tests => 36; + plan tests => 44; my $qb; @@ -102,6 +102,7 @@ subtest 'build_authorities_query_compat() tests' => sub { is( $query->{query}->{bool}->{must}[0]->{query_string}->{query}, "a*"); } + is( $query->{query}->{bool}->{must}[0]->{query_string}->{analyze_wildcard}, JSON::true, 'Set analyze_wildcard true' ); } $search_term = 'Donald Duck'; -- 2.17.1