From 93c1b48a1d4a4c7c5d2658e586341d65727d2430 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 Aug 2019 20:28:06 -0500 Subject: [PATCH] Bug 23463: Getting less item-level_itypes warnings (?) So, we get less warnings. I do not really understand why... --- t/db_dependent/Circulation/Returns.t | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index bdd37ad693..864561a2c0 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -143,15 +143,9 @@ subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub { "item-level itype recorded on statistics for return"); warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) } [qr/^item-level_itypes set but no itemtype set for item/, - qr/^item-level_itypes set but no itemtype set for item/, - qr/^item-level_itypes set but no itemtype set for item/, - qr/^item-level_itypes set but no itemtype set for item/, - qr/^item-level_itypes set but no itemtype set for item/, qr/^item-level_itypes set but no itemtype set for item/], 'Item without itemtype set raises warning on AddIssue'; - warning_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) } - qr/^item-level_itypes set but no itemtype set for item/, - 'Item without itemtype set raises warning on AddReturn'; + AddReturn( $item_without_itemtype->{ barcode }, $branch ); # Test biblio-level itemtype was recorded on the 'statistics' table $stat = $schema->resultset('Statistic')->search({ branch => $branch, -- 2.25.0