Bugzilla – Attachment 92972 Details for
Bug 22837
Koha::Account::Line->apply should not require a 'set' of debits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22837: (follow-up) Fix some tests
Bug-22837-follow-up-Fix-some-tests.patch (text/plain), 1.28 KB, created by
Tomás Cohen Arazi (tcohen)
on 2019-09-19 18:41:32 UTC
(
hide
)
Description:
Bug 22837: (follow-up) Fix some tests
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2019-09-19 18:41:32 UTC
Size:
1.28 KB
patch
obsolete
>From 3fc3c27c3c15aafcbfc038215b79229656f944ef Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 19 Sep 2019 15:41:02 -0300 >Subject: [PATCH] Bug 22837: (follow-up) Fix some tests > >--- > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22837
:
89314
|
89315
|
89316
|
89317
|
89468
|
89469
|
92972
|
92973
|
92977
|
92978
|
92979
|
92980
|
92981
|
92982
|
92983
|
92984