Ignore:
Timestamp:
11/19/08 19:11:33 (4 years ago)
Author:
CrawfordCurrie
Message:

Item175: ported unit tests to new namespace. They all pass.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/test/unit/EmptyTests.pm

    r14 r816  
    55package EmptyTests; 
    66 
    7 use base qw( TWikiTestCase ); 
     7use base qw( FoswikiTestCase ); 
    88 
    9 use TWiki; 
     9use Foswiki; 
    1010use Error qw( :try ); 
    1111 
     
    1717    $this->SUPER::set_up(); 
    1818 
    19     # You can now safely modify $TWiki::cfg 
     19    # You can now safely modify $Foswiki::cfg 
    2020 
    2121    $topicquery = new Unit::Request( '' ); 
    2222    $topicquery->path_info( '/TestCases/WebHome' ); 
    2323    try { 
    24         $this->{twiki} = new TWiki( 'AdminUser' || '' ); 
     24        $this->{twiki} = new Foswiki( 'AdminUser' || '' ); 
    2525        my $user = $this->{twiki}->{user}; 
    2626 
     
    3737            $user, 
    3838            "Temporarytwikiweb", 
    39             "TWiki"); 
     39            "System"); 
    4040 
    4141        # Create a topic like this: 
     
    4444        # to make sure you fixture protects things like .htpasswd 
    4545 
    46     } catch TWiki::AccessControlException with { 
     46    } catch Foswiki::AccessControlException with { 
    4747        my $e = shift; 
    4848        die "???" unless $e; 
Note: See TracChangeset for help on using the changeset viewer.