Bugzilla – Attachment 62274 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.72 KB, created by
Marcel de Rooy
on 2017-04-18 12:26:01 UTC
(
hide
)
Description:
Bug 18420: Fix Budgets.t when no patron category 'S' exists
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2017-04-18 12:26:01 UTC
Size:
1.72 KB
patch
obsolete
>From f7cda26f02508ed71a307f93c377aec43f29230d 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 >MIME-Version: 1.0 >Content-Type: text/plain; charset=utf-8 >Content-Transfer-Encoding: 8bit >Content-Type: text/plain; charset=utf-8 > >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 > >Signed-off-by: Marc Véron <veron@veron.ch> >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > 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.1.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 18420
:
62090
|
62091
|
62092
|
62093
|
62095
|
62115
|
62118
|
62164
|
62174
|
62175
|
62176
|
62177
|
62178
|
62179
|
62180
| 62274 |
62275
|
62276
|
62277
|
62278
|
62279
|
62280
|
112053