Ignore:
Timestamp:
01/23/12 14:45:26 (4 months ago)
Author:
CrawfordCurrie
Message:

Item11466: fixes for borked unit tests; looks like 'someone' is running unit tests with ASSERT disabled. Tsk tsk.

File:
1 edited

Legend:

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

    r13703 r13795  
    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.