36 lines
918 B
Perl
36 lines
918 B
Perl
# 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';
|
|
|
|
use Test::More tests => 5;
|
|
BEGIN { use_ok('Lemonldap::NG::Manager') }
|
|
|
|
#########################
|
|
|
|
# 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.
|
|
|
|
$ENV{SCRIPT_NAME} = "__SCRIPTNAME__";
|
|
$ENV{SCRIPT_FILENAME} = $0;
|
|
$ENV{HTTP_ACCEPT_LANGUAGE} = "fr";
|
|
my $h;
|
|
@ARGV = ("help=groups");
|
|
ok(
|
|
$h = new Lemonldap::NG::Manager(
|
|
{
|
|
configStorage => {
|
|
type => 'File',
|
|
dirName => ".",
|
|
},
|
|
dhtmlXTreeImageLocation => "/imgs/",
|
|
jsFile => 'example/lemonldap-ng-manager.js',
|
|
}
|
|
)
|
|
);
|
|
ok( $h->main() );
|
|
ok( $h->print_help() );
|
|
ok( $h->buildTree() );
|