Changeset 305

Show
Ignore:
Timestamp:
05/25/06 14:46:53 (6 years ago)
Author:
nick
Message:

Further tests on list_node_all_versions

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • wiki-toolkit/trunk/t/025_list_node_all_versions.t

    r300 r305  
    66    plan skip_all => "no backends configured"; 
    77} else { 
    8     plan tests => ( 56 * scalar @Wiki::Toolkit::TestLib::wiki_info ); 
     8    plan tests => ( 59 * scalar @Wiki::Toolkit::TestLib::wiki_info ); 
    99} 
    1010 
     
    128128        is_deeply( $all_versions[2]->{'metadata'}, \%md_2, "right metadata" ); 
    129129        is_deeply( $all_versions[3]->{'metadata'}, \%md_1, "right metadata" ); 
     130 
     131 
     132        # Finally, check that we still only have 1 version of the carrots node 
     133        my @carrots_versions = $wiki->list_node_all_versions( 
     134                                                                name => "Carrots", 
     135                                                                with_content => 1, 
     136                                                                with_metadata => 1 
     137        ); 
     138 
     139        is( scalar @carrots_versions, 1, "list_node_all_versions gives the right number back" ); 
     140 
     141        is( $carrots_versions[0]->{'version'}, 1, "right ordering" ); 
     142        is( $carrots_versions[0]->{'name'}, "Carrots", "right node" ); 
    130143} 
    131144