From ecf92b6d3b0460fe1e4b83e118567022928ddb0c Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 16 Jan 2017 20:33:11 -0500 Subject: [PATCH] Bug 17917: Fix Jenkins for t/db_dependent/Circulation/Branch.t TEST PLAN --------- 1) prove -v t/db_dependent/Circulation/Branch.t -- fails 2) apply this patch 3) prove -v t/db_dependent/Circulation/Branch.t -- succeeds 4) run koha qa test tools --- t/db_dependent/Circulation/Branch.t | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/t/db_dependent/Circulation/Branch.t b/t/db_dependent/Circulation/Branch.t index 3e46064..e542f4d 100644 --- a/t/db_dependent/Circulation/Branch.t +++ b/t/db_dependent/Circulation/Branch.t @@ -137,12 +137,16 @@ my @sampleitem3 = C4::Items::AddItem( my $item_id3 = $sampleitem3[2]; #Add borrower -my $borrower_id1 = C4::Members::AddMember( - firstname => 'firstname1', - surname => 'surname1 ', - categorycode => $samplecat->{categorycode}, - branchcode => $samplebranch1->{branchcode}, -); +my $patron1 = $builder->build({ + source => 'Borrower', + value => { + firstname => 'firstname1', + surname => 'surname1 ', + categorycode => $samplecat->{categorycode}, + branchcode => $samplebranch1->{branchcode}, + }, +}); +my $borrower_id1 = $patron1->{borrowernumber}; my $borrower_1 = C4::Members::GetMember(borrowernumber => $borrower_id1); is_deeply( -- 2.1.4