Bugzilla – Attachment 156068 Details for
Bug 31631
Optionally choose for tax-exclusive values to be used for calculating fund values (spent, ordered)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31631: (follow-up) Fixes for failing unit test t/db_dependent/Budgets.t
Bug-31631-follow-up-Fixes-for-failing-unit-test-td.patch (text/plain), 1.27 KB, created by
Kyle M Hall (khall)
on 2023-09-22 10:58:05 UTC
(
hide
)
Description:
Bug 31631: (follow-up) Fixes for failing unit test t/db_dependent/Budgets.t
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2023-09-22 10:58:05 UTC
Size:
1.27 KB
patch
obsolete
>From 9abbd80adaf4efb1a19fd80ffea3adb319bc480e Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >Date: Mon, 24 Apr 2023 00:14:02 +0000 >Subject: [PATCH] Bug 31631: (follow-up) Fixes for failing unit test > t/db_dependent/Budgets.t > >Test plan: >1. Set CalculateFundValuesIncludingTax = 'Include' > >2. Run Budgets.t unit test >sudo koha-shell kohadev >prove t/db_dependent/Budgets.t > >3. Set CalculateFundValuesIncludingTax = 'Exclude' > >4. Run Budgets.t unit test >sudo koha-shell kohadev >prove t/db_dependent/Budgets.t > >Sponsored-By: Waikato Institute of Technology, New Zealand > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/Budgets.t | 1 + > 1 file changed, 1 insertion(+) > >diff --git a/t/db_dependent/Budgets.t b/t/db_dependent/Budgets.t >index 3c667e2634a..d3585e29639 100755 >--- a/t/db_dependent/Budgets.t >+++ b/t/db_dependent/Budgets.t >@@ -433,6 +433,7 @@ for my $infos (@order_infos) { > } ); > } > } >+t::lib::Mocks::mock_preference('CalculateFundValuesIncludingTax', '1'); > is( GetBudgetHierarchySpent( $budget_id1 ), 160, "total spent for budget1 is 160" ); > is( GetBudgetHierarchySpent( $budget_id11 ), 100, "total spent for budget11 is 100" ); > is( GetBudgetHierarchySpent( $budget_id111 ), 20, "total spent for budget111 is 20" ); >-- >2.30.2
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 31631
:
141017
|
141018
|
141019
|
142597
|
142661
|
143156
|
143157
|
143158
|
143159
|
147011
|
147012
|
147013
|
147014
|
147015
|
147098
|
147099
|
147100
|
147101
|
147102
|
147103
|
147104
|
147105
|
150146
|
156062
|
156063
|
156064
|
156065
|
156066
|
156067
| 156068 |
156069