From cd937321520e7aab567449d9051989869aade789 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 23 Feb 2018 08:44:24 -0500 Subject: [PATCH] Bug 20285: Unit Test Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens Signed-off-by: Martin Renvoize (cherry picked from commit 096ba7d34cd08fcafed0aef2fcf272907cba55f0) Signed-off-by: Fridolin Somers --- t/db_dependent/Circulation.t | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index b062383473..a8f1856db6 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -1827,6 +1827,16 @@ subtest '_FixAccountForLostAndReturned' => sub { my $patron = $builder->build( { source => 'Borrower' } ); + Koha::Account::Line->new( + { + borrowernumber => $patron->{borrowernumber}, + accounttype => 'F', + itemnumber => $itemnumber, + amount => 10.00, + amountoutstanding => 10.00, + } + )->store(); + my $accountline = Koha::Account::Line->new( { borrowernumber => $patron->{borrowernumber}, -- 2.39.5