From f14db22d8ab39714fd71854c146b7472041ee7a3 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 Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer --- 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 abf2129530..17ab523b7a 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 } },