From 0eedb1580cffc1e976076c877624a0b4f57803bb 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 (cherry picked from commit b9ed7699e3da4966681a21c85bc78d99123d1681) (cherry picked from commit 25ea817edfb2263474090dae3c809820df9b69c0) Signed-off-by: Fridolin Somers --- 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 5d0e907c31..05f240b153 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -848,6 +848,9 @@ C4::Context->dbh->do("DELETE FROM accountlines"); LostItem( $itemnumber, 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" ); -- 2.39.5