If categorycode is 'X', the test will fail
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
+my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } });
my $patron = $builder->build({
source => 'Borrower',
value => {
branchcode => $branch->{branchcode},
debarred => undef,
my $patron = $builder->build({
source => 'Borrower',
value => {
branchcode => $branch->{branchcode},
debarred => undef,
+ categorycode => $patron_category->{categorycode},