Bug 36919: Remove another warning from Koha/Object.t
C4::Context->userenv not defined! at /kohadevbox/koha/Koha/Patron.pm line 1890. Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
parent
5c905109db
commit
f14db22d8a
1 changed files with 2 additions and 0 deletions
|
@ -383,6 +383,8 @@ subtest "to_api() tests" => sub {
|
|||
}
|
||||
);
|
||||
|
||||
t::lib::Mocks::mock_userenv( { patron => $patron } );
|
||||
|
||||
my $patron_api = $patron->to_api(
|
||||
{
|
||||
embed => { holds_count => { is_count => 1 } },
|
||||
|
|
Loading…
Reference in a new issue