Skip to content

Commit

Permalink
Now passing configuration file in 54-usersgroupsroles.t to MT when in…
Browse files Browse the repository at this point in the history
…stantiating.
  • Loading branch information
tima committed Sep 30, 2010
1 parent 407c357 commit 8532e94
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions t/54-usersgroupsroles.t
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@
use strict;
use Test::More;

BEGIN {
$ENV{MT_CONFIG} = 'mysql-test.cfg';
}
# BEGIN {
# $ENV{MT_CONFIG} = 'mysql-test.cfg';
# }

use vars qw( $DB_DIR $T_CFG );
use lib 't/lib', 'extlib', 'lib', '../lib', '../extlib';
use MT::Test;
use MT;
my $mt;

BEGIN {
$mt = new MT;
$mt = MT->instance( Config => $T_CFG ) or die MT->errstr;
my $grp_class = MT->model('group');
if (! $grp_class ) {
plan skip_all => "Groups are unavailable for testing.";
Expand Down

0 comments on commit 8532e94

Please sign in to comment.