Skip to content

Commit

Permalink
Item13897: createNewFoswikiApp() is now initializing cfg using cfgParams
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Nov 29, 2016
1 parent 99294e8 commit 1c1672f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion UnitTestContrib/lib/Unit/FoswikiTestRole.pm
Expand Up @@ -617,7 +617,12 @@ sub createNewFoswikiApp {
$app->cfg->data->{Store}{Implementation} ||= 'Foswiki::Store::PlainFile';

$params{env} //= $app->cloneEnv;
$params{cfg} //= $app->cfg->clone;
unless ( exists $params{cfgParams} ) {
my %cfgData = %{ $app->cfg->clone };
delete $cfgData{app};
$params{cfgParams} = \%cfgData;
}

my $newApp = Unit::TestApp->new(%params);

$this->app($newApp);
Expand Down

0 comments on commit 1c1672f

Please sign in to comment.