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>
(cherry picked from commit f14db22d8a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
86ca184501
commit
43829ee928
|
|
@ -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 New Issue