Changeset 13825 for branches/Release01x01/CommentPlugin/test/unit/CommentPlugin/CommentPluginTests.pm
- Timestamp:
- 01/25/12 10:36:41 (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Release01x01/CommentPlugin/test/unit/CommentPlugin/CommentPluginTests.pm
r8843 r13825 229 229 } 230 230 231 my $session = Foswiki->new( $Foswiki::cfg{DefaultUserLoginName}, $query ); 231 $this->createNewFoswikiSession( $Foswiki::cfg{DefaultUserLoginName}, 232 $query ); 232 233 my $text = "Ignore this text"; 233 234 234 235 # invoke the save handler 235 $this->captureWithKey( save => $this->getUIFn('save'), $ session);236 $this->captureWithKey( save => $this->getUIFn('save'), $this->{session} ); 236 237 237 238 $text = Foswiki::Func::readTopicText( $web, $topic ); … … 401 402 $query->path_info("/$this->{test_web}/$this->{test_topic}"); 402 403 403 my $session = Foswiki->new( $Foswiki::cfg{DefaultUserLoginName}, $query ); 404 $this->createNewFoswikiSession( $Foswiki::cfg{DefaultUserLoginName}, 405 $query ); 404 406 my $text = "Ignore this text"; 405 407 406 408 # invoke the save handler 407 $this->captureWithKey( save => $this->getUIFn('save'), $ session);409 $this->captureWithKey( save => $this->getUIFn('save'), $this->{session} ); 408 410 409 411 $text = … … 447 449 $query->path_info("/$this->{test_web}/$this->{test_topic}"); 448 450 449 my $session = Foswiki->new( $Foswiki::cfg{DefaultUserLoginName}, $query ); 451 $this->createNewFoswikiSession( $Foswiki::cfg{DefaultUserLoginName}, 452 $query ); 450 453 my $text = "Ignore this text"; 451 454 452 455 # invoke the save handler 453 $this->captureWithKey( save => $this->getUIFn('save'), $ session);456 $this->captureWithKey( save => $this->getUIFn('save'), $this->{session} ); 454 457 455 458 $text = … … 516 519 $query->path_info("/$this->{test_web}/$this->{test_topic}"); 517 520 518 my $session = Foswiki->new( $Foswiki::cfg{DefaultUserLoginName}, $query ); 521 $this->createNewFoswikiSession( $Foswiki::cfg{DefaultUserLoginName}, 522 $query ); 519 523 my $text = "Ignore this text"; 520 524 521 525 # invoke the save handler 522 $this->captureWithKey( save => $this->getUIFn('save'), $ session);526 $this->captureWithKey( save => $this->getUIFn('save'), $this->{session} ); 523 527 524 528 $text = … … 574 578 $query->path_info("/$this->{test_web}/$this->{test_topic}"); 575 579 576 my $session = Foswiki->new( $Foswiki::cfg{DefaultUserLoginName}, $query ); 580 $this->createNewFoswikiSession( $Foswiki::cfg{DefaultUserLoginName}, 581 $query ); 577 582 my $text = "Ignore this text"; 578 583 579 584 # invoke the save handler 580 $this->captureWithKey( save => $this->getUIFn('save'), $ session);585 $this->captureWithKey( save => $this->getUIFn('save'), $this->{session} ); 581 586 582 587 $text =
Note: See TracChangeset
for help on using the changeset viewer.
