Bug 40708: Fix Circulation/Returns.t

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 1091533b91)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-09-16 12:01:40 +02:00 committed by Paul Derscheid
parent ae1d04953f
commit 0bfefa98ad
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 3 additions and 3 deletions

View File

@ -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 } );