From e5b5aa7937a78e6523b822a3b145bcc41d049d81 Mon Sep 17 00:00:00 2001
From: root <root@e7279b8b0511>
Date: Mon, 5 Nov 2018 13:31:40 +0000
Subject: [PATCH] Bug 20598: Unit test

---
 t/db_dependent/Circulation.t | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t
index 2d82c9ff0c..32d3012907 100755
--- a/t/db_dependent/Circulation.t
+++ b/t/db_dependent/Circulation.t
@@ -17,7 +17,7 @@
 
 use Modern::Perl;
 
-use Test::More tests => 119;
+use Test::More tests => 120;
 
 use Data::Dumper;
 use DateTime;
@@ -854,6 +854,9 @@ C4::Context->dbh->do("DELETE FROM accountlines");
 
     LostItem( $itemnumber, 'test', 1 );
 
+    $line = Koha::Account::Lines->find($line->id);
+    is( $line->accounttype, 'F', 'Account type correctly changed from FU to F' );
+
     my $item = Koha::Database->new()->schema()->resultset('Item')->find($itemnumber);
     ok( !$item->onloan(), "Lost item marked as returned has false onloan value" );
     my $checkout = Koha::Checkouts->find({ itemnumber => $itemnumber });
-- 
2.17.2 (Apple Git-113)