Bugzilla – Attachment 28919 Details for
Bug 12427
C4::Members::Attributes.pm needs unit tests
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12427: adding unit tests of module C4::Members::Attributes.pm
Bug-12427-adding-unit-tests-of-module-C4MembersAtt.patch (text/plain), 1.47 KB, created by
Yohann Dufour
on 2014-06-18 07:06:56 UTC
(
hide
)
Description:
Bug 12427: adding unit tests of module C4::Members::Attributes.pm
Filename:
MIME Type:
Creator:
Yohann Dufour
Created:
2014-06-18 07:06:56 UTC
Size:
1.47 KB
patch
obsolete
>From e6ae81da19818ac9194fd09d6b847fda91905dbf Mon Sep 17 00:00:00 2001 >From: Yohann Dufour <dufour.yohann@gmail.com> >Date: Wed, 18 Jun 2014 09:01:49 +0200 >Subject: [PATCH] Bug 12427: adding unit tests of module > C4::Members::Attributes.pm > >The subroutines UpdateBorrowerAttribute, SearchIdMatchingAttribute, DeleteBorrowerAttribute, GetBorrowerAttributes, GetAttributes, GetBorrowerAttributeValue, SetBorrowerAttributes and CheckUniqueness of the module C4::Members::Attributes.pm was not tested > >Test plan: >1/ Execute the command: prove t/db_dependent/Members_Attributes.t >2/ The result has to be: >t/db_dependent/Members_Attributes.t .. ok >All tests successful. >Files=1, Tests=60, 2 wallclock secs ( 0.04 usr 0.01 sys + 1.45 cusr 0.08 csys = 1.58 CPU) >Result: PASS >--- > t/db_dependent/Members_Attributes.t | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/t/db_dependent/Members_Attributes.t b/t/db_dependent/Members_Attributes.t >index 8d67c42..d36a4c0 100755 >--- a/t/db_dependent/Members_Attributes.t >+++ b/t/db_dependent/Members_Attributes.t >@@ -72,7 +72,7 @@ is( @$borrower_attributes, 0, 'GetBorrowerAttributes without the borrower number > $borrower_attributes = C4::Members::Attributes::GetBorrowerAttributes($borrowernumber); > is( @$borrower_attributes, 0, 'GetBorrowerAttributes returns the correct number of borrower attributes' ); > >-my $attributes = [ >+my $attributes = [ > { > value => 'my attribute1', > code => $attribute_type1->code(), >-- >1.9.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 12427
:
28919
|
28921
|
28922
|
29008
|
29009
|
29153
|
29154
|
29185
|
29186