set library path before loading WebGUI modules in WebGUI::Test

This commit is contained in:
Graham Knop 2009-09-23 21:11:55 -05:00
parent 77fc01af38
commit 532f8ece6b
3 changed files with 140 additions and 97 deletions

View file

@ -15,6 +15,7 @@ use lib "$FindBin::Bin/lib";
use WebGUI::Test;
use Test::More tests => 15; # increment this value for each test you create
use Test::Deep;
use File::Basename qw(basename);
my $config = WebGUI::Test->config;
my $configFile = WebGUI::Test->file;
@ -25,7 +26,7 @@ ok( $config->get("dsn") ne "", "get()" );
is( ref $config->get("macros"), "HASH", "get() macros hash" );
is( ref $config->get("assets"), "HASH", "get() assets hash" );
is( ref $config->get("shippingDrivers"), "ARRAY", "get() shippingDrivers array" );
is( $config->getFilename,$configFile,"getFilename()" );
is( $config->getFilename, basename($configFile), "getFilename()" );
is( $config->getWebguiRoot, $webguiRoot, "getWebguiRoot()" );
ok( defined WebGUI::Config->readAllConfigs($webguiRoot), "readAllConfigs" );
$config->addToArray("shippingDrivers","TEST");