@@ -, +, @@ --- t/db_dependent/Circulation/Returns.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/t/db_dependent/Circulation/Returns.t +++ a/t/db_dependent/Circulation/Returns.t @@ -327,7 +327,7 @@ subtest 'Handle ids duplication' => sub { is( $messages->{DataCorrupted}, 1, 'messages should have the DataCorrupted flag set to 1' ); my $account_lines = Koha::Account::Lines->search({ borrowernumber => $patron->borrowernumber, issue_id => $issue_id }); - is( $account_lines->count, 0, 'No account lines should exist for this issue_id, patron should not have been charged' ); + is( $account_lines->count, 1, 'One account line should exist for this issue_id, the patron was charged a rental fee by AddIssue' ); is( Koha::Checkouts->find( $issue_id )->issue_id, $issue_id, 'The issues entry should not have been removed' ); }; --