Fix unit test for #2730

This commit is contained in:
Maxime Besson 2022-03-18 13:00:39 +01:00
parent e1f6534bbe
commit bfd8e382c4
1 changed files with 4 additions and 1 deletions

View File

@ -5,6 +5,7 @@ use IO::String;
use LWP::UserAgent;
use LWP::Protocol::PSGI;
use MIME::Base64;
use URI::QueryParam;
BEGIN {
require 't/test-lib.pm';
@ -298,7 +299,9 @@ count(1);
( $url, $query ) =
expectRedirection( $res, qr#^http://auth.op.com(/oauth2/authorize)\?(.*)$# );
like( $query, qr/my_param=my\+value/,
my $u = URI->new;
$u->query($query);
is( $u->query_param('my_param'), "my value",
"oidcGenerateAuthenticationRequest called" );
count(1);