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

(-)a/t/db_dependent/selenium/patrons_search.t (-1 / +3 lines)
Lines 74-79 subtest 'Search patrons' => sub { Link Here
74
        { class => 'Koha::Libraries', value => { branchname => $branchname } }
74
        { class => 'Koha::Libraries', value => { branchname => $branchname } }
75
    );
75
    );
76
    my $default_patron_search_fields = C4::Context->preference('DefaultPatronSearchFields');
76
    my $default_patron_search_fields = C4::Context->preference('DefaultPatronSearchFields');
77
    my $default_patron_search_method = C4::Context->preference('DefaultPatronSearchMethod');
77
    my $default_patron_per_page = C4::Context->preference('PatronsPerPage');
78
    my $default_patron_per_page = C4::Context->preference('PatronsPerPage');
78
    for my $i ( 1 .. 25 ) {
79
    for my $i ( 1 .. 25 ) {
79
        push @patrons,
80
        push @patrons,
Lines 155-160 subtest 'Search patrons' => sub { Link Here
155
156
156
    $s->auth;
157
    $s->auth;
157
    C4::Context->set_preference('DefaultPatronSearchFields',"");
158
    C4::Context->set_preference('DefaultPatronSearchFields',"");
159
    C4::Context->set_preference('DefaultPatronSearchMethod',"contains");
158
    my $PatronsPerPage = 15;
160
    my $PatronsPerPage = 15;
159
    my $nb_standard_fields = 13;
161
    my $nb_standard_fields = 13;
160
    C4::Context->set_preference('PatronsPerPage', $PatronsPerPage);
162
    C4::Context->set_preference('PatronsPerPage', $PatronsPerPage);
Lines 335-340 subtest 'Search patrons' => sub { Link Here
335
    push @cleanup, $patron_category;
337
    push @cleanup, $patron_category;
336
    push @cleanup, $attribute_type, $attribute_type_searchable;
338
    push @cleanup, $attribute_type, $attribute_type_searchable;
337
    C4::Context->set_preference('DefaultPatronSearchFields',$default_patron_search_fields);
339
    C4::Context->set_preference('DefaultPatronSearchFields',$default_patron_search_fields);
340
    C4::Context->set_preference('DefaultPatronSearchMethod',$default_patron_search_method);
338
    C4::Context->set_preference('PatronsPerPage',$default_patron_per_page);
341
    C4::Context->set_preference('PatronsPerPage',$default_patron_per_page);
339
342
340
    $driver->quit();
343
    $driver->quit();
341
- 

Return to bug 34094