Changeset 26


Ignore:
Timestamp:
Jun 11, 2004, 1:05:54 AM (17 years ago)
Author:
kake
Message:

Added test for searching on deleted nodes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cgi-wiki/trunk/t/005_delete.t

    r7 r26  
    66    plan skip_all => "no backends configured";
    77} else {
    8     plan tests => ( 4 * scalar @CGI::Wiki::TestLib::wiki_info );
     8    plan tests => ( 5 * scalar @CGI::Wiki::TestLib::wiki_info );
    99}
    1010
     
    2121    ok( ! $wiki->node_exists("A Node"),
    2222            "...and ->node_exists now returns false" );
     23    SKIP: {
     24        skip "No search configured for this combination", 1
     25          unless $wiki->search_obj;
     26        my %results = $wiki->search_nodes("content");
     27        is_deeply( \%results, { }, "...and a search does not find the node" );
     28    }
    2329
    2430    # Test deletion of a nonexistent node.
Note: See TracChangeset for help on using the changeset viewer.