From 294457f900e94bec1d13a1544fe6615f695ed444 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 19 Apr 2018 18:33:44 +0000 Subject: [PATCH] Bug 20562: Fix unit test --- t/db_dependent/Circulation/Returns.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t index e97ebe3bde..804e7de88d 100644 --- a/t/db_dependent/Circulation/Returns.t +++ b/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' ); }; -- 2.15.1 (Apple Git-101)