Bug 20598: Unit test
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 5 Nov 2018 13:31:40 +0000 (13:31 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 16 Nov 2018 12:47:50 +0000 (12:47 +0000)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

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 });