Bug 34932: Patron.t - Pass borrowernumber of manager to userenv
Test plan:
Make sure that you do not have borrowr 51.
Run t/db_dependent/Koha/Patron.t.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ca4da5e17e)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
38a3001aed
commit
f5f0bc4010
|
|
@ -1115,6 +1115,8 @@ subtest 'safe_to_delete() tests' => sub {
|
|||
is( $message->type, 'error', 'Type is error' );
|
||||
is( $message->message, 'has_debt', 'Cannot delete, has debt' );
|
||||
# cleanup
|
||||
my $manager = $builder->build_object( { class => 'Koha::Patrons' } );
|
||||
t::lib::Mocks::mock_userenv( { borrowernumber => $manager->id } );
|
||||
$patron->account->pay({ amount => 10, debits => [ $debit ] });
|
||||
|
||||
## Happy case :-D
|
||||
|
|
|
|||
Loading…
Reference in New Issue