Changeset 5896 for trunk/tests/phpunit/testcases/replies/template/reply.php
- Timestamp:
- 08/08/2015 07:13:21 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/replies/template/reply.php
r5894 r5896 143 143 $this->assertSame( $reply_url, bbp_get_reply_url( $r[6] ) ); 144 144 145 // Remove the filter for WordPress < 4.0 compatibility. 146 remove_filter( 'bbp_show_lead_topic', '__return_true' ); 147 145 148 // Reply menu position is bumped by 1 when bbp_show_lead_topic() false. 146 149 add_filter( 'bbp_show_lead_topic', '__return_false' ); … … 173 176 $reply_url = bbp_get_topic_permalink( $t ) . '&paged=3#post-' . bbp_get_reply_id( $r[6] ); 174 177 $this->assertSame( $reply_url, bbp_get_reply_url( $r[6] ) ); 178 179 // Remove the filter for WordPress < 4.0 compatibility. 180 remove_filter( 'bbp_show_lead_topic', '__return_false' ); 175 181 176 182 // Restore the original reply pagination option value. … … 537 543 $this->assertSame( 4, $position ); 538 544 545 // Remove the filter for WordPress < 4.0 compatibility. 546 remove_filter( 'bbp_show_lead_topic', '__return_true' ); 547 539 548 // Reply menu position is bumped by 1 when bbp_show_lead_topic() false. 540 549 add_filter( 'bbp_show_lead_topic', '__return_false' ); … … 563 572 $position = bbp_get_reply_position( $r[3] ); 564 573 $this->assertSame( 5, $position ); 574 575 // Remove the filter for WordPress < 4.0 compatibility. 576 remove_filter( 'bbp_show_lead_topic', '__return_false' ); 565 577 } 566 578
Note: See TracChangeset
for help on using the changeset viewer.