@@ -, +, @@ --- t/db_dependent/Circulation/Returns.t | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) --- a/t/db_dependent/Circulation/Returns.t +++ a/t/db_dependent/Circulation/Returns.t @@ -124,9 +124,9 @@ subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub { warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) } 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'; + warnings_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) } + [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 warnings on AddReturn'; # Test biblio-level itemtype was recorded on the 'statistics' table $stat = $schema->resultset('Statistic')->search({ branch => $branch, @@ -246,5 +246,6 @@ subtest 'Handle ids duplication' => sub { my $old_checkout = Koha::Old::Checkouts->find( $checkout->issue_id ); isnt( $old_checkout->itemnumber, $item->{itemnumber}, 'If an item is checked-in, it should be moved to old_issues even if the issue_id already existed in the table' ); }; +$schema->storage->txn_rollback; 1; --