Fix unit tests warning (#2406)
This commit is contained in:
parent
90d2dc58b7
commit
2dde8672d5
|
@ -35,7 +35,7 @@ sub check {
|
|||
and $req->param('secret') eq $self->conf->{checkStateSecret} );
|
||||
$req->steps( [ 'controlUrl', @{ $self->p->beforeAuth } ] );
|
||||
my $res = $self->p->process($req);
|
||||
if ( $res > 0 ) {
|
||||
if ( $res && $res > 0 ) {
|
||||
push @rep, "Bad result before auth: $res";
|
||||
}
|
||||
|
||||
|
|
|
@ -9,8 +9,7 @@ require 't/smtp.pm';
|
|||
use_ok('Lemonldap::NG::Common::FormEncode');
|
||||
count(1);
|
||||
|
||||
my $client = LLNG::Manager::Test->new(
|
||||
{
|
||||
my $client = LLNG::Manager::Test->new( {
|
||||
ini => {
|
||||
logLevel => 'error',
|
||||
mail2fActivation => 1,
|
||||
|
@ -18,7 +17,8 @@ my $client = LLNG::Manager::Test->new(
|
|||
authentication => 'Demo',
|
||||
userDB => 'Same',
|
||||
mailSessionKey => 'mail',
|
||||
macros => { 'mail2f' => '"test\@example.com"', },
|
||||
macros =>
|
||||
{ mail2f => '"test\@example.com"', _whatToTrace => '$uid' },
|
||||
mail2fSessionKey => 'mail2f',
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user