2006-12-18 12:32:33 +01:00
|
|
|
# Before `make install' is performed this script should be runnable with
|
|
|
|
# `make test'. After `make install' it should work as `perl Lemonldap-NG-Portal-AuthSsl.t'
|
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# change 'tests => 1' to 'tests => last_test_to_print';
|
|
|
|
|
2007-04-14 22:38:55 +02:00
|
|
|
use Test::More tests => 2;
|
2007-04-15 14:44:29 +02:00
|
|
|
BEGIN { use_ok('Lemonldap::NG::Portal::Simple') }
|
2006-12-18 12:32:33 +01:00
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# Insert your test code below, the Test::More module is use()ed here so read
|
|
|
|
# its man page ( perldoc Test::More ) for help writing this test script.
|
|
|
|
|
2008-12-01 18:21:34 +01:00
|
|
|
$ENV{"REQUEST_METHOD"} = 'GET';
|
2007-04-14 22:38:55 +02:00
|
|
|
my $p;
|
2007-04-15 14:44:29 +02:00
|
|
|
ok(
|
|
|
|
$p = Lemonldap::NG::Portal::Simple->new(
|
|
|
|
{
|
2008-06-06 05:53:14 +02:00
|
|
|
globalStorage => 'Apache::Session::File',
|
|
|
|
domain => 'example.com',
|
|
|
|
authentication => 'SSL',
|
|
|
|
SSLRequired => 0,
|
2007-04-15 14:44:29 +02:00
|
|
|
}
|
|
|
|
)
|
|
|
|
);
|
2006-12-18 12:32:33 +01:00
|
|
|
|