Changeset 13791 for trunk/UnitTestContrib/test/unit/ConfigureTests.pm
- Timestamp:
- 01/23/12 06:00:05 (4 months ago)
- File:
-
- 1 edited
-
trunk/UnitTestContrib/test/unit/ConfigureTests.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/UnitTestContrib/test/unit/ConfigureTests.pm
r13730 r13791 4 4 use warnings; 5 5 6 use FoswikiTestCase ;6 use FoswikiTestCase(); 7 7 our @ISA = qw( FoswikiTestCase ); 8 8 9 9 use Error qw( :try ); 10 use File::Temp ;10 use File::Temp(); 11 11 use FindBin; 12 12 use File::Path qw(mkpath rmtree); … … 32 32 $root =~ s|\\|/|g; 33 33 34 $this->{rootdir} = $root;35 $this->{user} = $Foswiki::cfg{AdminUserLogin};36 $this-> {session} = Foswiki->new( $this->{user} );34 $this->{rootdir} = $root; 35 $this->{user} = $Foswiki::cfg{AdminUserLogin}; 36 $this->createNewFoswikiSession( $this->{user} ); 37 37 $this->{test_web} = 'Testsystemweb1234'; 38 38 my $webObject = Foswiki::Meta->new( $this->{session}, $this->{test_web} ); 39 39 $webObject->populateNewWeb(); 40 $webObject->finish(); 40 41 $this->{trash_web} = 'Testtrashweb1234'; 41 42 $webObject = Foswiki::Meta->new( $this->{session}, $this->{trash_web} ); 42 43 $webObject->populateNewWeb(); 44 $webObject->finish(); 43 45 $this->{sandbox_web} = 'Testsandboxweb1234'; 44 46 $webObject = Foswiki::Meta->new( $this->{session}, $this->{sandbox_web} ); 45 47 $webObject->populateNewWeb(); 48 $webObject->finish(); 46 49 $this->{sandbox_subweb} = 'Testsandboxweb1234/Subweb'; 47 50 $webObject = 48 51 Foswiki::Meta->new( $this->{session}, $this->{sandbox_subweb} ); 49 52 $webObject->populateNewWeb(); 53 $webObject->finish(); 50 54 $this->{tempdir} = $Foswiki::cfg{TempfileDir} . '/test_ConfigureTests'; 51 55 rmtree( $this->{tempdir} ) … … 1926 1930 my ( $result, $err ) = $pkg->loadInstaller(); 1927 1931 1928 my $expected = << HERE;1932 my $expected = <<'HERE'; 1929 1933 I can't download http://foswiki.org/pub/Extensions/EmptyPluginx/EmptyPluginx_installer because of the following error: 1930 1934 Not Found
Note: See TracChangeset
for help on using the changeset viewer.
