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

(-)a/t/db_dependent/Search/History.t (-2 / +1 lines)
Lines 125-131 delete_all( $userid ); Link Here
125
125
126
add( $userid, $current_sessionid, $previous_sessionid, $total, $query_cgi_b, $query_cgi_a );
126
add( $userid, $current_sessionid, $previous_sessionid, $total, $query_cgi_b, $query_cgi_a );
127
warning_like { C4::Search::History::delete({}) }
127
warning_like { C4::Search::History::delete({}) }
128
          qr/^ERROR: userid or id is required for history deletion/,
128
          qr/^ERROR: userid, id or interval is required for history deletion/,
129
          'Calling delete without userid raises warning';
129
          'Calling delete without userid raises warning';
130
$all = C4::Search::History::get({userid => $userid});
130
$all = C4::Search::History::get({userid => $userid});
131
is( scalar(@$all), 9, 'There are still 9 searches after calling delete without userid' );
131
is( scalar(@$all), 9, 'There are still 9 searches after calling delete without userid' );
132
- 

Return to bug 10933