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:
parent
ae1d04953f
commit
0bfefa98ad
|
|
@ -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 } );
|
||||
|
|
|
|||
Loading…
Reference in New Issue