Bug 20598: Unit test
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 5 Nov 2018 13:31:40 +0000 (13:31 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 5 Dec 2018 08:13:09 +0000 (09:13 +0100)
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit b9ed7699e3da4966681a21c85bc78d99123d1681)
(cherry picked from commit 25ea817edfb2263474090dae3c809820df9b69c0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>

t/db_dependent/Circulation.t

index 5d0e907..05f240b 100755 (executable)
@@ -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" );