Bug 20598: Unit test
[koha.git] / t / db_dependent / Circulation.t
index f1f7a59..b8487ea 100755 (executable)
@@ -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 });