Bugzilla – Attachment 19579 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.77 KB, created by
Galen Charlton
on 2013-07-11 16:55:10 UTC
(
hide
)
Description:
Bug 10535: (follow-up) add test case
Filename:
MIME Type:
Creator:
Galen Charlton
Created:
2013-07-11 16:55:10 UTC
Size:
1.77 KB
patch
obsolete
>From 71d66a0e584e282d5e3260c58709f434faaba166 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> >--- > t/db_dependent/Budgets.t | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Budgets.t b/t/db_dependent/Budgets.t >index 2a2439d..50d6116 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; >@@ -112,6 +112,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.10.4
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