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

(cherry picked from commit 082e4e2571)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Jonathan Druart 2018-03-30 13:14:46 -03:00 committed by Fridolin Somers
parent b8cb916045
commit 493587da4e
1 changed files with 2 additions and 1 deletions

View File

@ -380,7 +380,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} }});
my $p_from_GetMember =
GetMember(%{{borrowernumber => $CBBI_patron->{borrowernumber}}});
# Our Items