From c04a87e34f62ea7985fd161677fba4472a878434 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 Oct 2017 13:16:53 -0300 Subject: [PATCH] Bug 19529: Prevent NoIssuesChargeGuarantees.t to fail randomly Use a categorycode != "X" Signed-off-by: Jonathan Druart (cherry picked from commit 667c07e0480825da10fa9dba4ae9e9625be51d99) Signed-off-by: Fridolin Somers --- t/db_dependent/Circulation/NoIssuesChargeGuarantees.t | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t index 2c7f16d09e..5f07c6b05b 100644 --- a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t +++ b/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t @@ -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}, } } ); -- 2.39.5