Skip to content

Commit

Permalink
Item11135: Convert FoswikiFnTestCase to readTopic
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/branches/Release01x01@13849 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
PaulHarvey authored and PaulHarvey committed Jan 28, 2012
1 parent 119630a commit 6a38e99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions UnitTestContrib/test/unit/FoswikiFnTestCase.pm
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,9 @@ sub set_up {
$this->{test_user_cuid} =
$this->{session}->{users}->getCanonicalUserID( $this->{test_user_login} );
$this->{test_topicObject}->finish() if $this->{test_topicObject};
$this->{test_topicObject} = Foswiki::Meta->new(
$this->{session}, $this->{test_web},
$this->{test_topic}, "BLEEGLE\n"
);
( $this->{test_topicObject} ) =
Foswiki::Func::readTopic( $this->{test_web}, $this->{test_topic} );
$this->{test_topicObject}->text("BLEEGLE\n");
$this->{test_topicObject}->save( forcedate => ( time() + 60 ) );
}

Expand Down

0 comments on commit 6a38e99

Please sign in to comment.