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

(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t (-3 / +3 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 => 51;
219
    plan tests => 52;
220
220
221
    my $qb;
221
    my $qb;
222
222
Lines 248-254 subtest 'build_query tests' => sub { Link Here
248
    $query = $qb->build_query('test', %options);
248
    $query = $qb->build_query('test', %options);
249
    ok( defined $query->{aggregations}{ccode}{terms}{size},'we need to ask for a size or we get only 5 facet' );
249
    ok( defined $query->{aggregations}{ccode}{terms}{size},'we need to ask for a size or we get only 5 facet' );
250
    is( $query->{aggregations}{ccode}{terms}{size}, 37,'we ask for the size as defined by the syspref FacetMaxCount');
250
    is( $query->{aggregations}{ccode}{terms}{size}, 37,'we ask for the size as defined by the syspref FacetMaxCount');
251
    is( $query->{aggregations}{homebranch}{terms}{size}, 37,'we ask for the size as defined by the syspref FacetMaxCount fir homebranch');
251
    is( $query->{aggregations}{homebranch}{terms}{size}, 37,'we ask for the size as defined by the syspref FacetMaxCount for homebranch');
252
    is( $query->{aggregations}{holdingbranch}{terms}{size}, 37,'we ask for the size as defined by the syspref FacetMaxCount for holdingbranch');
252
253
253
    t::lib::Mocks::mock_preference('DisplayLibraryFacets','both');
254
    t::lib::Mocks::mock_preference('DisplayLibraryFacets','both');
254
    $query = $qb->build_query();
255
    $query = $qb->build_query();
255
- 

Return to bug 26009