Changeset 1412


Ignore:
Timestamp:
Jun 4, 2012, 9:18:13 PM (10 years ago)
Author:
kake
Message:

The output of the "show_missing_metadata" action is now alphabetised.

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Changes

    r1411 r1412  
    55
    660.69    ?
    7 
     7        The output of the "show_missing_metadata" action is now alphabetised.
    88
    990.68    21 May 2012
  • trunk/lib/OpenGuides.pm

    r1411 r1412  
    22802280    # Build nice edit etc links for our nodes
    22812281    my @tt_nodes;
    2282     for my $node (@nodes) {
     2282    for my $node (sort @nodes) {
    22832283        my %n;
    22842284
  • trunk/t/701_missing_metadata.t

    r1382 r1412  
    1212}
    1313
    14 plan tests => 26;
    15     OpenGuides::Test::refresh_db();
     14plan tests => 27;
     15OpenGuides::Test::refresh_db();
    1616
    1717my $config = OpenGuides::Test->make_basic_config;
     
    2222my $wiki = $guide->wiki;
    2323isa_ok( $wiki, "Wiki::Toolkit" );
    24 
    25 
    2624
    2725# Add four different pages, one of which with two versions, one of which
     
    9795is( $nodes[3]->{'name'}, "Test Page 3", "Right nodes" );
    9896
     97# Make sure they're returned in alphabetical order.
     98my @nodenames = map { $_->{name} } @{$ttvars{nodes}};
     99is_deeply( \@nodenames,
     100           [ "Category Foo", "Locale Bar", "Test Page", "Test Page 3" ],
     101           "Nodes are returned in alphabetical order" );
    99102
    100103# Try again, but exclude locale and category
Note: See TracChangeset for help on using the changeset viewer.