From 6fedfcf499a7686360d9a9e27d3679f9944d2394 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. --- 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 28ac6e5e94b..19f86978567 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.34.1