From 3fcbaaa45bac8cdd3fef9548203db2e72567da51 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 19 Sep 2019 15:41:02 -0300 Subject: [PATCH] Bug 22837: (follow-up) Fix some tests Signed-off-by: Liz Rea Signed-off-by: Tomas Cohen Arazi --- t/db_dependent/Koha/Account.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Account.t b/t/db_dependent/Koha/Account.t index cec72ed6ca..f8ee8a89b1 100755 --- a/t/db_dependent/Koha/Account.t +++ b/t/db_dependent/Koha/Account.t @@ -780,7 +780,7 @@ subtest 'Koha::Account::Line::apply() handles lost items' => sub { } )->store(); my $debits = $account->outstanding_debits; - $credit->apply({ debits => $debits }); + $credit->apply({ debits => [ $debits->as_list ] }); $debit = Koha::Account::Lines->find( $debit->id ); is( $debit->amountoutstanding, '0.500000', 'Account line was paid down by half' ); @@ -798,7 +798,7 @@ subtest 'Koha::Account::Line::apply() handles lost items' => sub { } )->store(); $debits = $account->outstanding_debits; - $credit->apply({ debits => $debits }); + $credit->apply({ debits => [ $debits->as_list ] }); $debit = Koha::Account::Lines->find( $debit->id ); is( $debit->amountoutstanding, '0.000000', 'Account line was paid down by half' ); -- 2.23.0