From 343215130364df72163ddcacd1d036f0cae113d5 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 2 Nov 2018 14:38:56 -0400 Subject: [PATCH] Bug 19066: (QA follow-up) Remove bad and unecessary test Signed-off-by: Martin Renvoize --- t/db_dependent/Accounts.t | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t index 3813dea6f0..b52f45817c 100644 --- a/t/db_dependent/Accounts.t +++ b/t/db_dependent/Accounts.t @@ -18,7 +18,7 @@ use Modern::Perl; -use Test::More tests => 41; +use Test::More tests => 36; use Test::MockModule; use Test::Warn; @@ -103,18 +103,6 @@ ok( $accountline->description =~ /^$description/, 'Accountline description set c is( $accountline->note, $note, 'Accountline note set correctly for manualinvoice' ); is( $accountline->branchcode, $branchcode, 'Accountline branchcode set correctly for manualinvoice' ); -# Test _FixAccountForLostAndReturned, use the accountline from the manualinvoice to test -C4::Circulation::_FixAccountForLostAndReturned( $item->{itemnumber} ); -my ( $accountline_fee, $accountline_payment ) = Koha::Account::Lines->search( - { - borrowernumber => $patron->{borrowernumber} - } -); -is( $accountline_fee->accounttype, 'LR', 'Lost item fee account type updated to LR' ); -is( $accountline_fee->amountoutstanding, '0.000000', 'Lost item fee amount outstanding updated to 0' ); -is( $accountline_payment->accounttype, 'CR', 'Lost item fee account type is CR' ); -is( $accountline_payment->amount, "-$amount", 'Lost item refund amount is correct' ); -is( $accountline_payment->branchcode, $branchcode, 'Lost item refund branchcode is set correctly' ); $dbh->do(q|DELETE FROM accountlines|); # Testing purge_zero_balance_fees -- 2.19.2