Bug 35568: (RM follow-up) Use warnings_exist over warning_like

We introduced additional warnings triggered by prepared letter and those
caused the test of the recall hook to fail.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Martin Renvoize 2024-04-24 10:20:38 +01:00
parent 200fc922d7
commit 07682a5a67
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ subtest 'after_recall_action hook' => sub {
C4::Circulation::AddIssue( $patron2, $item->barcode );
warning_like {
warnings_exist {
Koha::Recalls->add_recall({
patron => $patron1,
biblio => $biblio,