Bug 10933: (followup of the followup) fix the previous patch to work with master

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2015-10-27 16:05:36 +00:00 committed by Tomas Cohen Arazi
parent dca6b23302
commit 7bde40a2d5

View file

@ -125,7 +125,7 @@ delete_all( $userid );
add( $userid, $current_sessionid, $previous_sessionid, $total, $query_cgi_b, $query_cgi_a );
warning_like { C4::Search::History::delete({}) }
qr/^ERROR: userid or id is required for history deletion/,
qr/^ERROR: userid, id or interval is required for history deletion/,
'Calling delete without userid raises warning';
$all = C4::Search::History::get({userid => $userid});
is( scalar(@$all), 9, 'There are still 9 searches after calling delete without userid' );