From 65caa7db9244a18fc15dca9d719b7d0f149ced4c 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 Content-Type: text/plain; charset=utf-8 Signed-off-by: Marcel de Rooy --- 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 3b1da09..b9f927f 100755 --- a/t/db_dependent/Circulation.t +++ b/t/db_dependent/Circulation.t @@ -17,7 +17,7 @@ use Modern::Perl; -use Test::More tests => 120; +use Test::More tests => 121; 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.1.4