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/Fn_SCRIPTURL.pm

    r14 r816  
    55package Fn_SCRIPTURL; 
    66 
    7 use base qw( TWikiFnTestCase ); 
     7use base qw( FoswikiFnTestCase ); 
    88 
    9 use TWiki; 
     9use Foswiki; 
    1010use Error qw( :try ); 
    1111 
     
    1818    my $this = shift; 
    1919 
    20     $TWiki::cfg{ScriptUrlPaths}{snarf} = "sausages"; 
    21     undef $TWiki::cfg{ScriptUrlPaths}{view}; 
    22     $TWiki::cfg{ScriptSuffix} = ".dot"; 
     20    $Foswiki::cfg{ScriptUrlPaths}{snarf} = "sausages"; 
     21    undef $Foswiki::cfg{ScriptUrlPaths}{view}; 
     22    $Foswiki::cfg{ScriptSuffix} = ".dot"; 
    2323 
    2424    my $result = $this->{twiki}->handleCommonTags("%SCRIPTURL%", $this->{test_web}, $this->{test_topic}); 
    2525    $this->assert_str_equals( 
    26         "$TWiki::cfg{DefaultUrlHost}$TWiki::cfg{ScriptUrlPath}", $result); 
     26        "$Foswiki::cfg{DefaultUrlHost}$Foswiki::cfg{ScriptUrlPath}", $result); 
    2727 
    2828    $result = $this->{twiki}->handleCommonTags( 
    2929        "%SCRIPTURLPATH{view}%", $this->{test_web}, $this->{test_topic}); 
    30     $this->assert_str_equals("$TWiki::cfg{ScriptUrlPath}/view.dot", $result); 
     30    $this->assert_str_equals("$Foswiki::cfg{ScriptUrlPath}/view.dot", $result); 
    3131 
    3232    $result = $this->{twiki}->handleCommonTags( 
Note: See TracChangeset for help on using the changeset viewer.