Skip to content

Commit

Permalink
Item12888: Tests fail if config changes def webnames
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@17818 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
GeorgeClark authored and GeorgeClark committed Jul 15, 2014
1 parent 37f870a commit 2c38a06
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion UnitTestContrib/test/unit/ConfigureTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ sub test_Util_mapTarget {
my $saveMime = $Foswiki::cfg{MimeTypesFileName};

$Foswiki::cfg{TrashWebName} = $this->{trash_web};
$Foswiki::cfg{UsersWebName} = 'Main';

# Remap system web

Expand Down Expand Up @@ -660,13 +661,16 @@ sub test_Util_getMappedWebTopic {
my $savePrefs = $Foswiki::cfg{WebPrefsTopicName};
my $saveMime = $Foswiki::cfg{MimeTypesFileName};

# Make sure local config has expected defaults
$Foswiki::cfg{SystemWebName} = 'System';
$Foswiki::cfg{UsersWebName} = 'Main';

$Foswiki::cfg{TrashWebName} = $this->{trash_web};

my $wname = '';
my $tname = '';

# Remap system web

my $file = 'data/System/System.txt';
( $wname, $tname ) = Foswiki::Configure::Util::getMappedWebTopic("$file");
$this->assert_str_equals( 'System', $wname );
Expand Down

0 comments on commit 2c38a06

Please sign in to comment.