Bug 40019: Remove warnings from Koha/Auth/Client.t

Test plan:
  prove t/db_dependent/Koha/Auth/Client.t
should return green

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit c695e6ce4c)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Jonathan Druart 2025-05-28 16:48:15 +02:00 committed by Paul Derscheid
parent ef3ee7d69c
commit ca2ff9b46b
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 4 additions and 2 deletions

View File

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