Bugzilla – Attachment 62090 Details for
Bug 18420
Some tests fail without patron category 'S'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18420: Fix Budgets.t when no patron category 'S' exists
Bug-18420-Fix-Budgetst-when-no-patron-category-S-e.patch (text/plain), 1.49 KB, created by
Jonathan Druart
on 2017-04-12 14:04:28 UTC
(
hide
)
Description:
Bug 18420: Fix Budgets.t when no patron category 'S' exists
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-04-12 14:04:28 UTC
Size:
1.49 KB
patch
obsolete
>From ba248b1c4d2095ec5379c87b71ff2dfc72fa4181 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 12 Apr 2017 11:03:10 -0300 >Subject: [PATCH] Bug 18420: Fix Budgets.t when no patron category 'S' exists > >No need to create Staff users here. > >Test plan: > prove t/db_dependent/Budgets.t >should return green, even if no categories.categorycode 'S' exists >--- > t/db_dependent/Budgets.t | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/t/db_dependent/Budgets.t b/t/db_dependent/Budgets.t >index 0611389..d19dedf 100755 >--- a/t/db_dependent/Budgets.t >+++ b/t/db_dependent/Budgets.t >@@ -580,13 +580,13 @@ for my $new_budget ( @new_budgets ) { > > # Test SetOwnerToFundHierarchy > >-my $categorycode = 'S'; >+my $patron_category = $builder->build({ source => 'Category' }); > my $branchcode = $library->{branchcode}; > my $john_doe = C4::Members::AddMember( > cardnumber => '123456', > firstname => 'John', > surname => 'Doe', >- categorycode => $categorycode, >+ categorycode => $patron_category->{categorycode}, > branchcode => $branchcode, > dateofbirth => '', > dateexpiry => '9999-12-31', >@@ -611,7 +611,7 @@ my $jane_doe = C4::Members::AddMember( > cardnumber => '789012', > firstname => 'Jane', > surname => 'Doe', >- categorycode => $categorycode, >+ categorycode => $patron_category->{categorycode}, > branchcode => $branchcode, > dateofbirth => '', > dateexpiry => '9999-12-31', >-- >2.9.3
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 18420
:
62090
|
62091
|
62092
|
62093
|
62095
|
62115
|
62118
|
62164
|
62174
|
62175
|
62176
|
62177
|
62178
|
62179
|
62180
|
62274
|
62275
|
62276
|
62277
|
62278
|
62279
|
62280
|
112053