Tests
This commit is contained in:
parent
51d4c67f11
commit
038c312200
@ -348,7 +348,6 @@ sub error_ro {
|
|||||||
'Problemă la încărcarea unui furnizor de servicii',
|
'Problemă la încărcarea unui furnizor de servicii',
|
||||||
'A apărut o eroare în timpul schimbului de SAML atribute',
|
'A apărut o eroare în timpul schimbului de SAML atribute',
|
||||||
'Această pagină este proiectat pentru servere OpenID',
|
'Această pagină este proiectat pentru servere OpenID',
|
||||||
'Când încercaţi să utilizaţi o identitate OpenID care nu este a ta',
|
|
||||||
'Când încercaţi să utilizaţi o identitate OpenID care nu vă aparţine',
|
'Când încercaţi să utilizaţi o identitate OpenID care nu vă aparţine',
|
||||||
'Un atribut solicitate nu sunt disponibile',
|
'Un atribut solicitate nu sunt disponibile',
|
||||||
'Federation forbidden by security policy',
|
'Federation forbidden by security policy',
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
BEGIN {
|
BEGIN {
|
||||||
our %tr_err = (
|
our %tr_err = (
|
||||||
fr => 'French',
|
fr => 'French',
|
||||||
|
|
||||||
|
# Not yet maintained
|
||||||
ro => 'Romanian',
|
ro => 'Romanian',
|
||||||
);
|
);
|
||||||
our %tr_msg = ( fr => 'French', );
|
our %tr_msg = ( fr => 'French', );
|
||||||
@ -25,7 +27,7 @@ foreach ( keys %tr_err ) {
|
|||||||
my @tmp;
|
my @tmp;
|
||||||
ok( @tmp = @{ &{"Lemonldap::NG::Portal::_i18n::error_$_"} },
|
ok( @tmp = @{ &{"Lemonldap::NG::Portal::_i18n::error_$_"} },
|
||||||
"$tr_err{$_} translation" );
|
"$tr_err{$_} translation" );
|
||||||
ok( $#tmp == $#en, "$tr_err{$_} translation count" );
|
ok( $#tmp == $#en, "$tr_err{$_} translation count (" . scalar(@tmp) . ')' );
|
||||||
}
|
}
|
||||||
|
|
||||||
my $p = bless {}, 'Lemonldap::NG::Portal::Simple';
|
my $p = bless {}, 'Lemonldap::NG::Portal::Simple';
|
||||||
@ -43,5 +45,6 @@ foreach ( keys %tr_msg ) {
|
|||||||
my @tmp;
|
my @tmp;
|
||||||
ok( @tmp = @{ &{"Lemonldap::NG::Portal::_i18n::msg_$_"} },
|
ok( @tmp = @{ &{"Lemonldap::NG::Portal::_i18n::msg_$_"} },
|
||||||
"$tr_msg{$_} messages translation" );
|
"$tr_msg{$_} messages translation" );
|
||||||
ok( $#tmp == $#en, "$tr_msg{$_} messages translation count" );
|
ok( $#tmp == $#en,
|
||||||
|
"$tr_msg{$_} messages translation count (" . scalar(@tmp) . ')' );
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
package My::Portal;
|
package My::Portal;
|
||||||
|
|
||||||
use Test::More tests => 13;
|
use Test::More tests => 14;
|
||||||
use strict;
|
use strict;
|
||||||
|
|
||||||
our @ISA = qw(Lemonldap::NG::Portal::IssuerDBOpenID
|
our @ISA = qw(Lemonldap::NG::Portal::IssuerDBOpenID
|
||||||
@ -39,6 +39,7 @@ SKIP: {
|
|||||||
uid => 'test',
|
uid => 'test',
|
||||||
mail => 'x.x.org'
|
mail => 'x.x.org'
|
||||||
},
|
},
|
||||||
|
whatToTrace => 'uid',
|
||||||
},
|
},
|
||||||
__PACKAGE__;
|
__PACKAGE__;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user