From: Jonathan Druart Date: Thu, 12 Oct 2017 14:19:40 +0000 (-0300) Subject: Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;ds=sidebyside;h=307e55a7debdf5e1c960cbfea443b6b160c0ce9a;p=koha.git Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly If categorycode is 'X', the test will fail Signed-off-by: Jonathan Druart --- diff --git a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t index 3397e23ab8..8a7fb5202d 100644 --- a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t +++ b/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t @@ -50,11 +50,13 @@ my $branch = $builder->build({ source => 'Branch', }); +my $patron_category = $builder->build({ source => 'Category', value => { categorycode => 'NOT_X', category_type => 'P', enrolmentfee => 0 } }); my $patron = $builder->build({ source => 'Borrower', value => { branchcode => $branch->{branchcode}, debarred => undef, + categorycode => $patron_category->{categorycode}, }, });