Ignore:
Timestamp:
01/25/12 03:51:12 (4 months ago)
Author:
PaulHarvey
Message:

Item11431: Improper Meta->new..readTopic conversion

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x01/UnitTestContrib/test/unit/ViewScriptTests.pm

    r13794 r13820  
    130130        my ($topicObject) = 
    131131          Foswiki::Func::readTopic( $this->{test_subweb}, 
    132             $Foswiki::cfg{HomeTopicName}, "SMELL" ); 
     132            $Foswiki::cfg{HomeTopicName} ); 
     133        $topicObject->text("SMELL"); 
    133134        $topicObject->save(); 
    134135        $topicObject->finish(); 
     
    144145    }; 
    145146    my ($topicObject) = 
    146       Foswiki::Func::readTopic( $this->{test_subweb}, $topic, 
    147         'nested topci1 text', undef ); 
     147      Foswiki::Func::readTopic( $this->{test_subweb}, $topic ); 
     148    $topicObject->text('nested topci1 text'); 
    148149    $topicObject->save(); 
    149150    $topicObject->finish(); 
    150151 
    151152    #set up nested web _and_ topic called $this->{test_web}/ThisTopic 
    152     ($topicObject) = 
    153       Foswiki::Func::readTopic( $this->{test_web}, 'ThisTopic', 
    154         'nested ThisTopic text', undef ); 
     153    ($topicObject) = Foswiki::Func::readTopic( $this->{test_web}, 'ThisTopic' ); 
     154    $topicObject->text('nested ThisTopic text'); 
    155155    $topicObject->save(); 
    156156    $topicObject->finish(); 
Note: See TracChangeset for help on using the changeset viewer.