View | Details | Raw Unified | Return to bug 27307
Collapse All | Expand All

(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t (-2 / +8 lines)
Lines 216-222 subtest 'build_authorities_query_compat() tests' => sub { Link Here
216
};
216
};
217
217
218
subtest 'build_query tests' => sub {
218
subtest 'build_query tests' => sub {
219
    plan tests => 56;
219
    plan tests => 57;
220
220
221
    my $qb;
221
    my $qb;
222
222
Lines 279-284 subtest 'build_query tests' => sub { Link Here
279
        "query not altered if QueryAutoTruncate disabled"
279
        "query not altered if QueryAutoTruncate disabled"
280
    );
280
    );
281
281
282
    ( undef, $query ) = $qb->build_query_compat( undef, ['donald duck'], ['kw,phr'] );
283
    is(
284
        $query->{query}{query_string}{query},
285
        '("donald duck")',
286
        "keyword as phrase correctly quotes search term and strips index"
287
    );
288
282
    ( undef, $query ) = $qb->build_query_compat( undef, ['donald duck'], ['title'] );
289
    ( undef, $query ) = $qb->build_query_compat( undef, ['donald duck'], ['title'] );
283
    is(
290
    is(
284
        $query->{query}{query_string}{query},
291
        $query->{query}{query_string}{query},
285
- 

Return to bug 27307