Force logout in unit test (#2336)

Moo
Clément OUDOT 5 years ago
parent 16211e5573
commit 5d22cf9cd8
  1. 9
      lemonldap-ng-portal/t/61-AdaptativeAuthenticationLevel.t

@ -11,8 +11,7 @@ my $res;
my $id;
my $json;
my $client = LLNG::Manager::Test->new(
{
my $client = LLNG::Manager::Test->new( {
ini => {
logLevel => 'error',
authentication => 'Demo',
@ -51,6 +50,9 @@ $json = expectJSON($res);
ok( $json == 3, 'Authentication level upgraded' );
count(1);
ok( $client->logout($id), 'Logout' );
count(1);
ok(
$res = $client->_post(
'/',
@ -76,6 +78,9 @@ $json = expectJSON($res);
ok( $json == 5, 'Authentication level upgraded' );
count(1);
ok( $client->logout($id), 'Logout' );
count(1);
clean_sessions();
done_testing( count() );

Loading…
Cancel
Save