From 03321a246c333cf94ce8857cbd8fac3b1e7c79e1 Mon Sep 17 00:00:00 2001 From: Mark Tompsett Date: Mon, 16 Jan 2017 20:18:22 -0500 Subject: [PATCH] Bug 17917: Fix Jenkins for t/db_dependent/Serials_2.t TEST PLAN --------- 1) prove -v t/db_dependent/Serials_2.t -- fails 2) apply this patch 3) prove -v t/db_dependent/Serials_2.t -- succeeds 4) run koha qa test tools --- t/db_dependent/Serials_2.t | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/t/db_dependent/Serials_2.t b/t/db_dependent/Serials_2.t index 202c641..fff4560 100644 --- a/t/db_dependent/Serials_2.t +++ b/t/db_dependent/Serials_2.t @@ -78,13 +78,18 @@ is( C4::Serials::can_edit_subscription($subscription_from_my_branch), 0, "cannot is( C4::Serials::can_claim_subscription($subscription_from_my_branch), 0, "cannot edit a subscription without userenv set"); my $userid = 'my_userid'; -my $borrowernumber = C4::Members::AddMember( - firstname => 'my fistname', - surname => 'my surname', - categorycode => 'S', - branchcode => $my_branch, - userid => $userid, -); +my $patron = $builder->build({ + source => 'Borrower', + value => { + firstname => 'my fistname', + surname => 'my surname', + categorycode => 'S', + branchcode => $my_branch, + userid => $userid, + }, +}); + +my $borrowernumber = $patron->{borrowernumber}; $userenv = { flags => 1, id => $borrowernumber, branch => '' }; -- 2.1.4