Changeset 225 for trunk/t


Ignore:
Timestamp:
04/20/09 23:19:57 (15 years ago)
Author:
nanardon
Message:
  • fix and check poll uid
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/t/10Vote_DB.t

    r219 r225  
    121121plan tests =>  
    122122    3                          # Fixed test  
    123     + scalar(@$test_polls) * 4 # number of tested polls scenario 
     123    + scalar(@$test_polls) * 6 # number of tested polls scenario 
    124124    + $poll_test_count;        # poll test 
    125125 
     
    137137 
    138138    isa_ok(my $poll = $vote->poll($pollid), 'Vote::DB::Poll'); 
     139 
     140    ok(my $puid = $poll->uid, "can get poll uid"); 
     141    is($vote->poll_id_from_uid($puid), $pollid, "can get id from uid"); 
    139142 
    140143    foreach (keys %{ $tpoll->{poll} || {}}) { 
Note: See TracChangeset for help on using the changeset viewer.