Bugzilla – Attachment 138884 Details for
Bug 27779
Cashup summary 'refunds' should denote what the refund was actioned against
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27779: (QA follow-up) Fix unit test
Bug-27779-QA-follow-up-Fix-unit-test.patch (text/plain), 1.77 KB, created by
Martin Renvoize (ashimema)
on 2022-08-09 08:28:32 UTC
(
hide
)
Description:
Bug 27779: (QA follow-up) Fix unit test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-08-09 08:28:32 UTC
Size:
1.77 KB
patch
obsolete
>From e76f6d9dd34d08dccac3448ce01c8a4b02014ff6 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 9 Aug 2022 09:27:35 +0100 >Subject: [PATCH] Bug 27779: (QA follow-up) Fix unit test > >I forgot to adapt the unit test for the new 'related_debit' key in the >outpur from the summary method. >--- > t/db_dependent/Koha/Cash/Register/Cashup.t | 20 ++++++++++++++++---- > 1 file changed, 16 insertions(+), 4 deletions(-) > >diff --git a/t/db_dependent/Koha/Cash/Register/Cashup.t b/t/db_dependent/Koha/Cash/Register/Cashup.t >index e49c8e5223..df373c3d87 100755 >--- a/t/db_dependent/Koha/Cash/Register/Cashup.t >+++ b/t/db_dependent/Koha/Cash/Register/Cashup.t >@@ -200,9 +200,15 @@ subtest 'summary' => sub { > { > 'total' => '0.5', > 'credit_type' => { >- 'description' => 'A refund applied to a patrons fine' >+ 'description' => 'Refund' > }, >- 'credit_type_code' => 'REFUND' >+ 'credit_type_code' => 'REFUND', >+ 'related_debit' => { >+ 'debit_type_code' => 'LOST', >+ 'debit_type' => { >+ 'description' => 'Lost item' >+ } >+ } > }; > > $expected_total += $expected_income_total; >@@ -322,9 +328,15 @@ subtest 'summary' => sub { > { > 'total' => '1', > 'credit_type' => { >- 'description' => 'A refund applied to a patrons fine' >+ 'description' => 'Refund' > }, >- 'credit_type_code' => 'REFUND' >+ 'credit_type_code' => 'REFUND', >+ 'related_debit' => { >+ 'debit_type_code' => 'ACCOUNT', >+ 'debit_type' => { >+ 'description' => 'Account creation fee' >+ } >+ } > }; > > $expected_total += $expected_income_total; >-- >2.20.1
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 27779
:
121218
|
121219
|
121224
|
121225
|
127552
|
127553
|
127554
|
130024
|
136491
|
136492
|
136493
|
136494
|
136495
|
137386
|
137387
|
137388
|
137389
|
137390
|
138809
|
138810
|
138811
|
138812
|
138813
|
138849
|
138883
| 138884