Changeset 13814


Ignore:
Timestamp:
01/24/12 12:04:41 (4 weeks ago)
Author:
PaulHarvey
Message:

Item11431: Improper Foswiki::Meta->new.. readTopic

File:
1 edited

Legend:

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

    r13791 r13814  
    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(); 
     
    151152    #set up nested web _and_ topic called $this->{test_web}/ThisTopic 
    152153    ($topicObject) = 
    153       Foswiki::Func::readTopic( $this->{test_web}, 'ThisTopic', 
    154         'nested ThisTopic text', undef ); 
     154      Foswiki::Func::readTopic( $this->{test_web}, 'ThisTopic'); 
     155    $topicObject->text( 'nested ThisTopic text' ); 
    155156    $topicObject->save(); 
    156157    $topicObject->finish(); 
Note: See TracChangeset for help on using the changeset viewer.