Bug 20503: Prevent Borrower_PrevCheckout.t to fail randomly
category_type must be != "X" Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Conflicts: t/db_dependent/Patron/Borrower_PrevCheckout.t
This commit is contained in:
parent
6852c592f7
commit
082e4e2571
|
|
@ -378,7 +378,8 @@ test_it($cpvPmappings, "PostReturn");
|
|||
# - $checkprevcheckout pref (first hardno, then hardyes)
|
||||
|
||||
# Our Patron
|
||||
my $CBBI_patron = $builder->build({source => 'Borrower'});
|
||||
my $patron_category = $builder->build({ source => 'Category', value => { category_type => 'P', enrolmentfee => 0 } });
|
||||
my $CBBI_patron = $builder->build({source => 'Borrower', value => { categorycode => $patron_category->{categorycode} }});
|
||||
$patron = Koha::Patrons->find( $CBBI_patron->{borrowernumber} )->unblessed;
|
||||
# Our Items
|
||||
my $new_item = $builder->build({
|
||||
|
|
|
|||
Loading…
Reference in New Issue