From 10eaf808d2657088ea3f361cf8a40bd9b541b312 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 22 May 2024 11:22:44 +0200 Subject: [PATCH] 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 --- t/db_dependent/Koha/Object.t | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/db_dependent/Koha/Object.t b/t/db_dependent/Koha/Object.t index 28ac6e5e94..19f8697856 100755 --- a/t/db_dependent/Koha/Object.t +++ b/t/db_dependent/Koha/Object.t @@ -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 } }, -- 2.39.2