Bug 19455: Prevent SwitchOnSiteCheckouts.t to fail randomly

If categorycode is 'X', the test will fail

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-10-12 11:19:40 -03:00
parent 1dba61e933
commit 307e55a7de
1 changed files with 2 additions and 0 deletions

View File

@ -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},
},
});