Changeset 13818


Ignore:
Timestamp:
01/25/12 03:20:59 (4 weeks ago)
Author:
PaulHarvey
Message:

Item11431: Fix creating invalid test_topicObject

File:
1 edited

Legend:

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

    r13743 r13818  
    741741    $this->{request} = $this->{session}{request}; 
    742742    ASSERT( defined $Foswiki::Plugins::SESSION ) if SINGLE_SINGLETONS; 
    743     ( $this->{test_topicObject} ) = 
    744       Foswiki::Func::readTopic( $this->{test_web}, $this->{test_topic} ); 
     743    if ( $this->{test_web} && $this->{test_topic} ) { 
     744        ( $this->{test_topicObject} ) = 
     745          Foswiki::Func::readTopic( $this->{test_web}, $this->{test_topic} ); 
     746    } 
    745747 
    746748    return $this->{session}; 
Note: See TracChangeset for help on using the changeset viewer.