From 590635ded396cef42851ff4249a18ed84f46e232 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 2 Nov 2018 07:44:34 +0100 Subject: [PATCH] Bug 21604: Add two trivial test cases Content-Type: text/plain; charset=utf-8 Adding an id in AddBudgetPeriod and an empty string in AddBudget for budget_encumb. Test plan: Run Budgets.t with/without this patch in strict sql mode. Signed-off-by: Marcel de Rooy --- t/db_dependent/Budgets.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Budgets.t b/t/db_dependent/Budgets.t index ec14e11..3ca1a9d 100755 --- a/t/db_dependent/Budgets.t +++ b/t/db_dependent/Budgets.t @@ -59,6 +59,7 @@ my $my_budgetperiod = { budget_period_enddate => '2008-12-31', budget_period_description => 'MAPERI', budget_period_active => 0, + budget_period_id => '', # Bug 21604 }; $bpid = AddBudgetPeriod($my_budgetperiod); isnt( $bpid, undef, 'AddBugetPeriod does not returns undef' ); @@ -127,6 +128,7 @@ my $my_budget = { budget_name => 'Periodiques', budget_notes => 'This is a note', budget_period_id => $bpid, + budget_encumb => '', # Bug 21604 }; my $budget_id = AddBudget($my_budget); isnt( $budget_id, undef, 'AddBudget does not returns undef' ); -- 2.1.4