Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LemonLDAP NG
lemonldap-ng
Commits
64e6c20f
Commit
64e6c20f
authored
Feb 09, 2019
by
Christophe Maudoux
🐛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve unit test (
#1595
)
parent
b777007f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
1 deletion
+24
-1
lemonldap-ng-portal/t/02-Password-Demo.t
lemonldap-ng-portal/t/02-Password-Demo.t
+24
-1
No files found.
lemonldap-ng-portal/t/02-Password-Demo.t
View file @
64e6c20f
...
...
@@ -15,6 +15,8 @@ my $client = LLNG::Manager::Test->new( {
passwordDB
=>
'
Demo
',
portalRequireOldPassword
=>
1
,
showLanguages
=>
0
,
translations
=>
'
site/templates/localeTranslations.txt
',
error_de_85
=>
'
From lemonlap-ng.ini
',
}
}
);
...
...
@@ -23,7 +25,28 @@ ok( $res = $client->_get( '/', accept => 'text/html' ), 'Get Menu' );
ok
(
$res
->
[
2
]
->
[
0
]
!~
m%<span id="languages"></span>%
,
'
No language icon found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
count
(
2
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"trOver"%
,
'
trOver found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"all":\{\}%
,
'
all found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"en":\{"PE5":"Big brother is watching you, authenticated user"\}%
,
'
en found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"PE0":"Souriez, vous êtes surveillés !"%
,
'
PE0 found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"selectIdP":"Portail de Fédération des Identités"%
,
'
selectIdP found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"fr":\{%
,
'
fr found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
ok
(
$res
->
[
2
]
->
[
0
]
=~
m%"PE85":"From lemonlap-ng.ini"%
,
'
PE85 found
'
)
or
print
STDERR
Dumper
(
$res
->
[
2
]
->
[
0
]
);
count
(
9
);
# Try yo authenticate
# -------------------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment