Bug 19529: Prevent NoIssuesChargeGuarantees.t to fail randomly
Use a categorycode != "X"
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 667c07e048)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
e89ee57263
commit
c04a87e34f
|
|
@ -40,9 +40,13 @@ my $item = $builder->build(
|
|||
}
|
||||
);
|
||||
|
||||
my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } });
|
||||
my $patron = $builder->build(
|
||||
{
|
||||
source => 'Borrower',
|
||||
value => {
|
||||
patron_category => $patron_category->{categorycode},
|
||||
}
|
||||
}
|
||||
);
|
||||
my $guarantee = $builder->build(
|
||||
|
|
@ -50,6 +54,7 @@ my $guarantee = $builder->build(
|
|||
source => 'Borrower',
|
||||
value => {
|
||||
guarantorid => $patron->{borrowernumber},
|
||||
patron_category => $patron_category->{categorycode},
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue