From e6ae81da19818ac9194fd09d6b847fda91905dbf Mon Sep 17 00:00:00 2001 From: Yohann Dufour 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