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

(-)a/t/db_dependent/Koha/SearchEngine/Elasticsearch/QueryBuilder.t (-3 / +2 lines)
Lines 803-811 subtest "Handle search filters" => sub { Link Here
803
803
804
    my ( undef, undef, undef, undef, undef, $limit, $limit_cgi, $limit_desc ) = $qb->build_query_compat( undef, undef, undef, ["search_filter:$filter_id"] );
804
    my ( undef, undef, undef, undef, undef, $limit, $limit_cgi, $limit_desc ) = $qb->build_query_compat( undef, undef, undef, ["search_filter:$filter_id"] );
805
805
806
    is( $limit,q{(onloan:false) AND ((cat) AND title:(bat) OR author:(rat)) AND itype:(("BK") OR ("MU"))},"Limit correctly formed");
806
    is( $limit,q{(available:true) AND ((cat) AND title:(bat) OR author:(rat)) AND itype:(("BK") OR ("MU"))},"Limit correctly formed");
807
    is( $limit_cgi,"&limit=search_filter%3A$filter_id","CGI limit is not expanded");
807
    is( $limit_cgi,"&limit=search_filter%3A$filter_id","CGI limit is not expanded");
808
    is( $limit_desc,q{(onloan:false) AND ((cat) AND title:(bat) OR author:(rat)) AND itype:(("BK") OR ("MU"))},"Limit description is correctly expanded");
808
    is( $limit_desc,q{(available:true) AND ((cat) AND title:(bat) OR author:(rat)) AND itype:(("BK") OR ("MU"))},"Limit description is correctly expanded");
809
809
810
    $filter = Koha::SearchFilter->new({
810
    $filter = Koha::SearchFilter->new({
811
        name => "test",
811
        name => "test",
812
- 

Return to bug 17170