From b9ed7699e3da4966681a21c85bc78d99123d1681 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Mon, 5 Nov 2018 13:31:40 +0000 Subject: [PATCH] Bug 20598: Unit test Signed-off-by: Marcel de Rooy Signed-off-by: Nick Clemens --- t/db_dependent/Circulation.t | 3 +++ 1 file changed, 3 insertions(+) diff --git a/t/db_dependent/Circulation.t b/t/db_dependent/Circulation.t index f1f7a5903d..b8487eaa22 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -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.11.4.GIT