Bug 36503: Fix unit tests

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 4417811d9a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Martin Renvoize 2024-05-03 11:19:42 +01:00 committed by Fridolin Somers
parent 7df3340b1c
commit 4facda139a
1 changed files with 1 additions and 9 deletions

View File

@ -86,16 +86,8 @@ subtest 'get_user() tests' => sub {
auth_client_get_user => sub {
$_[1]->{mapped_data}->{firstname} = 'test name modified 1';
return;
},
retrieve_data => sub { return $_[1] eq 'priority' ? 2 : undef; }
}
},
{
auth_client_get_user => sub {
$_[1]->{mapped_data}->{firstname} = 'test name modified 2';
return;
},
retrieve_data => sub { return $_[1] eq 'priority' ? 1 : undef; }
}
];
my @plugins;
foreach my $method ( @{$methods} ) {