Bug 20285: Unit Test
authorKyle M Hall <kyle@bywatetsolutions.com>
Fri, 23 Feb 2018 13:44:24 +0000 (08:44 -0500)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Jun 2018 10:38:10 +0000 (10:38 +0000)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
t/db_dependent/Circulation.t

index eca91fd..9f0791a 100755 (executable)
@@ -1994,6 +1994,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},