From 0bfefa98ad18658d8e796a98083f1d309da94aa6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 16 Sep 2025 12:01:40 +0200 Subject: [PATCH] Bug 40708: Fix Circulation/Returns.t Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass (cherry picked from commit 1091533b917b56c5b3aefb1239d5eae55a433d43) Signed-off-by: Paul Derscheid --- t/db_dependent/Circulation/Returns.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index 7dece48b3a..e5083acacb 100755 --- a/t/db_dependent/Circulation/Returns.t +++ b/t/db_dependent/Circulation/Returns.t @@ -314,9 +314,9 @@ subtest 'Handle ids duplication' => sub { ], 'DBD should have raised an error about dup primary key'; - is( $doreturn, 0, 'Return should not have been done' ); - is( $messages->{WasReturned}, 0, 'messages should have the WasReturned flag set to 0' ); - is( $messages->{DataCorrupted}, 1, 'messages should have the DataCorrupted flag set to 1' ); + is( $doreturn, 0, 'Return should not have been done' ); + is( $messages->{WasReturned}, 0, 'messages should have the WasReturned flag set to 0' ); + is( $messages->{DataCorrupted}, 'Duplicate ID', 'messages should have the DataCorrupted flag set to 1' ); $account_lines = Koha::Account::Lines->search( { borrowernumber => $borrower->{borrowernumber}, issue_id => $issue_id } );