Bugzilla – Attachment 52364 Details for
Bug 16717
Remove hardcoded category from Holds.t
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16717: Improve variable naming
Bug-16717-Improve-variable-naming.patch (text/plain), 1.34 KB, created by
Jonathan Druart
on 2016-06-14 10:20:51 UTC
(
hide
)
Description:
Bug 16717: Improve variable naming
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-06-14 10:20:51 UTC
Size:
1.34 KB
patch
obsolete
>From 9ab3759a649513d28baff0f58816c382872a0eea Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 14 Jun 2016 11:18:32 +0100 >Subject: [PATCH] Bug 16717: Improve variable naming > >$category was a categorycode, to help the readability it's better to >name it $categorycode or assign a Category to $category > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/db_dependent/Holds.t | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/t/db_dependent/Holds.t b/t/db_dependent/Holds.t >index b368481..f9ddc46 100755 >--- a/t/db_dependent/Holds.t >+++ b/t/db_dependent/Holds.t >@@ -34,7 +34,7 @@ my $dbh = C4::Context->dbh; > my $branch_1 = $builder->build({ source => 'Branch' })->{ branchcode }; > my $branch_2 = $builder->build({ source => 'Branch' })->{ branchcode }; > >-my $category = $builder->build({ source => 'Category' })->{categorycode}; >+my $category = $builder->build({ source => 'Category' }); > > my $borrowers_count = 5; > >@@ -60,7 +60,7 @@ foreach (1..$borrowers_count) { > my $borrowernumber = AddMember( > firstname => 'my firstname', > surname => 'my surname ' . $_, >- categorycode => $category, >+ categorycode => $category->{categorycode}, > branchcode => $branch_1, > ); > push @borrowernumbers, $borrowernumber; >-- >2.8.1
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 16717
:
52301
|
52304
|
52363
| 52364