From 2fcceb7f402abdc7ca30d72d11e1815a1309b41b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 9 Dec 2016 12:56:49 -0500 Subject: [PATCH] Bug 15896 [QA Followup] - Supress warn when running unit tests Signed-off-by: Kyle M Hall --- t/db_dependent/Accounts.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/t/db_dependent/Accounts.t b/t/db_dependent/Accounts.t index 508f353504..7f38efa117 100644 --- a/t/db_dependent/Accounts.t +++ b/t/db_dependent/Accounts.t @@ -1,4 +1,5 @@ #!/usr/bin/perl +use Carp::Always; # Copyright 2015 BibLibre # @@ -252,7 +253,7 @@ subtest "Koha::Account::pay tests" => sub { $note = $sth->fetchrow_array; is($note,'$200.00 payment note', '$200.00 payment note is registered'); - my $line3 = Koha::Account::Line->new({ borrowernumber => $borrower->borrowernumber, amountoutstanding => 42 })->store(); + my $line3 = Koha::Account::Line->new({ borrowernumber => $borrower->borrowernumber, amountoutstanding => 42, accounttype => 'TEST' })->store(); my $payment_id = $account->pay( { accountlines_id => $line3->id, amount => 42 } ); my $payment = Koha::Account::Lines->find( $payment_id ); is( $payment->amount(), '-42.000000', "Payment paid the specified fine" ); -- 2.11.4.GIT