projects
/
koha.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
180909e
)
Bug 20598: Unit test
author
Kyle M Hall
<kyle@bywatersolutions.com>
Mon, 5 Nov 2018 13:31:40 +0000 (13:31 +0000)
committer
“Lucas Gass”
<lucas@bywatersolutions.com>
Tue, 4 Dec 2018 18:50:46 +0000 (18:50 +0000)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit
b9ed7699e3da4966681a21c85bc78d99123d1681
)
t/db_dependent/Circulation.t
patch
|
blob
|
history
diff --git
a/t/db_dependent/Circulation.t
b/t/db_dependent/Circulation.t
index
14e423a
..
7d8a873
100755
(executable)
--- a/
t/db_dependent/Circulation.t
+++ b/
t/db_dependent/Circulation.t
@@
-855,6
+855,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 });