From 9abbd80adaf4efb1a19fd80ffea3adb319bc480e Mon Sep 17 00:00:00 2001 From: Alex Buckley 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 --- 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