Bugzilla – Attachment 20563 Details for
Bug 10535
by default sort funds by name
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10535: (follow-up) add test case
Bug-10535-follow-up-add-test-case.patch (text/plain), 1.83 KB, created by
Jared Camins-Esakov
on 2013-08-22 14:25:55 UTC
(
hide
)
Description:
Bug 10535: (follow-up) add test case
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2013-08-22 14:25:55 UTC
Size:
1.83 KB
patch
obsolete
>From 5253ce28c1efdc46db2157c2249bb8a139267a04 Mon Sep 17 00:00:00 2001 >From: Galen Charlton <gmc@esilibrary.com> >Date: Thu, 11 Jul 2013 16:51:40 +0000 >Subject: [PATCH] Bug 10535: (follow-up) add test case > >This adds a test case for the new default sort >order for GetBudgets(). > >Signed-off-by: Galen Charlton <gmc@esilibrary.com> >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > t/db_dependent/Budgets.t | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Budgets.t b/t/db_dependent/Budgets.t >index 717f8fe..baaa1a1 100755 >--- a/t/db_dependent/Budgets.t >+++ b/t/db_dependent/Budgets.t >@@ -1,6 +1,6 @@ > use strict; > use warnings; >-use Test::More tests=>18; >+use Test::More tests=>20; > > BEGIN {use_ok('C4::Budgets') } > use C4::Dates; >@@ -102,5 +102,22 @@ ok(GetBudgets({budget_period_id=>GetBudgetPeriod($bpid)->{budget_period_id}},[{" > my $budget_name = GetBudgetName( $budget_id ); > is($budget_name, $budget->{budget_name}, "Test the GetBudgetName routine"); > >+my $second_budget_id; >+ok($second_budget_id=AddBudget( >+ { budget_code => "ZZZZ", >+ budget_amount => "500.00", >+ budget_name => "Art", >+ budget_notes => "This is a note", >+ budget_description=> "Art", >+ budget_active => 1, >+ budget_period_id => $bpid, >+ } >+ ), >+ "AddBudget returned $second_budget_id"); >+ >+my $budgets = GetBudgets({ budget_period_id => $bpid}); >+ok($budgets->[0]->{budget_name} lt $budgets->[1]->{budget_name}, 'default sort order for GetBudgets is by name'); >+ > ok($del_status=DelBudget($budget_id), > "DelBudget returned $del_status"); >+ >-- >1.7.9.5
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 10535
:
19365
|
19402
|
19539
|
19579
|
20563
|
20579