Changeset 8587


Ignore:
Timestamp:
08/19/10 18:55:12 (18 months ago)
Author:
MichaelTempest
Message:

Item2286: It is better to read from the session object *before* calling finish(), so that the test still works if finish actually does clear out all of the fields (including this field, which is only used for testing).

File:
1 edited

Legend:

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

    r8236 r8587  
    923923        $this->assert( 0, "expected an oops redirect" ); 
    924924    }; 
     925    # Read the verification code before finish()'ing the session 
     926    my $debugVerificationCode = $this->{session}->{DebugVerificationCode}; 
    925927    $this->{session}->finish(); 
    926928 
    927929    # For verification process everything including finish(), so don't just 
    928930    # call verifyEmails 
    929     my $code = shift || $this->{session}->{DebugVerificationCode}; 
     931    my $code = shift || $debugVerificationCode; 
    930932    $query = new Unit::Request( 
    931933        { 
Note: See TracChangeset for help on using the changeset viewer.