- Timestamp:
- 01/22/08 16:38:24 (12 months ago)
- Files:
-
- 1 modified
-
trunk/t/45_home_recent_changes.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/t/45_home_recent_changes.t
r956 r1141 11 11 } 12 12 13 plan tests => 1 3;13 plan tests => 15; 14 14 15 15 my ( $config, $guide, $wiki ); … … 60 60 like( $output, qr/Edit this page/, "...edit this page link is there too" ); 61 61 62 OpenGuides::Test->write_data( 63 guide => $guide, 64 node => "Red Lion", 65 content => "A nice pub.", 66 username => "Earle", 67 comment => "I also edited it. For fun, here are two links: [[A Page]], and the same link [[A Page|again]].", 68 ); 69 70 # Reload page. 71 $output = $guide->display_node( 72 id => $config->home_name, 73 return_output => 1, 74 ); 75 76 like( $output, qr{<a href="\?A Page">A Page</a>}, "...simple wiki links appear in Recent Changes" ); 77 like( $output, qr{<a href="\?A Page">again</a>}, "...titled wiki links appear in Recent Changes" ); 78 79 62 80 # And that they don't show up if we don't want them. Turn off the navbar 63 81 # too, since we want to make sure the edit page link shows up regardless (it … … 78 96 unlike( $output, qr/Ten most.*recent changes/, "...heading not shown either" ); 79 97 like( $output, qr/Edit this page/, "...edit this page link is there though" ); 98
