my $library2 = $builder->build({
source => 'Branch',
});
+my $patron_category = $builder->build({ source => 'Category' });
my $dbh = C4::Context->dbh;
$dbh->{RaiseError} = 1;
my $borrowernumber = C4::Members::AddMember(
firstname => 'my fistname',
surname => 'my surname',
- categorycode => 'S',
+ categorycode => $patron_category->{categorycode},
branchcode => $my_branch,
userid => $userid,
);
is( GetPreviousSerialid( $subscriptionid_from_my_branch, 3 ), undef, "get previous serialid with 3, does not exist" );
$schema->storage->txn_rollback;
-$dbh->rollback;
# C4::Context->userenv
sub Mock_userenv {