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:
Jonathan Druart 2024-05-22 11:22:44 +02:00 committed by Katrin Fischer
parent 5c905109db
commit f14db22d8a
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

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