From b20eb5d62dc782addc07446e93fb8a1377abb471 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 28 May 2025 16:48:15 +0200 Subject: [PATCH] Bug 40019: Remove warnings from Koha/Auth/Client.t Test plan: prove t/db_dependent/Koha/Auth/Client.t should return green --- t/db_dependent/Koha/Auth/Client.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/db_dependent/Koha/Auth/Client.t b/t/db_dependent/Koha/Auth/Client.t index bc2cbbbba38..ed51b19d045 100755 --- a/t/db_dependent/Koha/Auth/Client.t +++ b/t/db_dependent/Koha/Auth/Client.t @@ -19,10 +19,11 @@ use Modern::Perl; -use Test::More tests => 4; +use Test::More tests => 5; use Test::MockModule; use Test::MockObject; +use Test::NoWarnings; use Test::Exception; use JSON qw(encode_json); @@ -56,7 +57,8 @@ subtest 'get_user() tests' => sub { } } ); - my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { email => 'patron@test.com' } } ); + my $patron = $builder->build_object( { class => 'Koha::Patrons', value => { email => 'patron@test.com' } } ); + t::lib::Mocks::mock_userenv( { patron => $patron } ); my $mapping = { email => 'electronic_mail', firstname => 'given_name', -- 2.34.1