View | Details | Raw Unified | Return to bug 6906
Collapse All | Expand All

(-)a/t/db_dependent/Patron/CheckPrevCheckout.t (-3 / +3 lines)
Lines 43-52 my $inheritCatCode = $builder->build({ Link Here
43
});
43
});
44
44
45
# Create context for some tests late on in the file.
45
# Create context for some tests late on in the file.
46
my $library = $builder->build({ source => 'Branch' });
46
my $staff = $builder->build({source => 'Borrower'});
47
my $staff = $builder->build({source => 'Borrower'});
47
my @USERENV = (
48
my @USERENV = (
48
    $staff->{borrowernumber}, 'test', 'MASTERTEST', 'firstname', 'CPL',
49
    $staff->{borrowernumber}, 'test', 'MASTERTEST', 'firstname', $library->{branchcode},
49
    'CPL', 'email@example.org'
50
    $library->{branchcode}, 'email@example.org'
50
);
51
);
51
C4::Context->_new_userenv('DUMMY_SESSION_ID');
52
C4::Context->_new_userenv('DUMMY_SESSION_ID');
52
C4::Context->set_userenv(@USERENV);
53
C4::Context->set_userenv(@USERENV);
53
- 

Return to bug 6906