2007-02-24 21:23:17 +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-Manager.t'
|
|
|
|
|
|
|
|
#########################
|
|
|
|
|
|
|
|
# change 'tests => 1' to 'tests => last_test_to_print';
|
|
|
|
|
2007-05-15 20:06:24 +02:00
|
|
|
use Test::More tests => 4;
|
2007-04-15 14:44:29 +02:00
|
|
|
|
2008-11-17 17:59:56 +01:00
|
|
|
# SOAP::Lite is not required, so Lemonldap::NG::Common::Conf::SOAP may
|
2007-02-24 21:23:17 +01:00
|
|
|
# not run.
|
|
|
|
SKIP: {
|
|
|
|
eval { require SOAP::Lite };
|
2007-04-15 14:44:29 +02:00
|
|
|
skip
|
|
|
|
"SOAP::Lite is not installed, so SOAP configuration access will not work",
|
2007-05-15 20:06:24 +02:00
|
|
|
4
|
2007-04-15 14:44:29 +02:00
|
|
|
if ($@);
|
2008-11-17 17:59:56 +01:00
|
|
|
use_ok('Lemonldap::NG::Common::Conf');
|
2007-05-15 20:06:24 +02:00
|
|
|
my $h;
|
|
|
|
ok(
|
2008-11-17 17:59:56 +01:00
|
|
|
$h = new Lemonldap::NG::Common::Conf(
|
2009-02-25 19:10:07 +01:00
|
|
|
{
|
|
|
|
type => 'SOAP',
|
|
|
|
proxy => 'http://localhost',
|
|
|
|
}
|
2007-05-15 20:06:24 +02:00
|
|
|
)
|
|
|
|
);
|
2009-02-25 19:10:07 +01:00
|
|
|
ok( $h->can('_connect') );
|
|
|
|
ok( $h->can('_soapCall') );
|
2007-02-24 21:23:17 +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.
|
|
|
|
|