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 |
- |
|
|