Changeset 5865
- Timestamp:
- 07/17/2015 08:24:17 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/forums/template/forum.php
r5721 r5865 97 97 } 98 98 99 $now = time(); 100 $post_date = date( 'Y-m-d H:i:s', $now - 60*60*100 ); 101 99 102 $f = $this->factory->forum->create(); 100 103 … … 104 107 $t = $this->factory->topic->create( array( 105 108 'post_parent' => $f, 109 'post_date' => $post_date, 106 110 ) ); 107 111 … … 111 115 112 116 $fresh_link = bbp_get_forum_freshness_link( $f ); 113 $this->assertSame( '<a href="http://example.org/?topic=topic-1" title="Topic 1"> right now</a>', $fresh_link );117 $this->assertSame( '<a href="http://example.org/?topic=topic-1" title="Topic 1">4 days, 4 hours ago</a>', $fresh_link ); 114 118 } 115 119
Note: See TracChangeset
for help on using the changeset viewer.