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:
Jonathan Druart 2018-03-30 13:14:46 -03:00 committed by Nick Clemens
parent 6852c592f7
commit 082e4e2571
1 changed files with 2 additions and 1 deletions

View File

@ -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({