Skip to content

Commit

Permalink
Item14237: Merge commit '1c1672f91ac4a4b2db744144ef4522eb9b65a1c7' in…
Browse files Browse the repository at this point in the history
…to Item14237

* commit '1c1672f91ac4a4b2db744144ef4522eb9b65a1c7':
  Item13897: createNewFoswikiApp() is now initializing cfg using cfgParams
  • Loading branch information
vrurg committed Nov 29, 2016
2 parents 616ad79 + 1c1672f commit 9817646
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion UnitTestContrib/lib/Unit/FoswikiTestRole.pm
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,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 9817646

Please sign in to comment.