From 07682a5a67a80d29dbf98bb7612ce1edaeee94eb Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 24 Apr 2024 10:20:38 +0100 Subject: [PATCH] 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 --- t/db_dependent/Koha/Plugins/Recall_hooks.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Koha/Plugins/Recall_hooks.t b/t/db_dependent/Koha/Plugins/Recall_hooks.t index 0ab79e0517..536e4a5660 100755 --- a/t/db_dependent/Koha/Plugins/Recall_hooks.t +++ b/t/db_dependent/Koha/Plugins/Recall_hooks.t @@ -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, -- 2.39.5