Changeset 13343 for trunk/tests/phpunit/testcases/blogs/functions.php
- Timestamp:
- 10/23/2022 02:21:19 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/functions.php
r12606 r13343 886 886 */ 887 887 public function test_bp_blogs_comment_sync_activity_comment_for_custom_post_type() { 888 $bp = buddypress(); 889 $reset = $bp->activity->track; 890 888 891 if ( is_multisite() ) { 889 892 $b = self::factory()->blog->create(); 893 890 894 switch_to_blog( $b ); 895 896 $bp->activity->track = array(); 891 897 add_filter( 'comment_flood_filter', '__return_false' ); 892 898 } else { … … 971 977 if ( is_multisite() ) { 972 978 restore_current_blog(); 979 980 $bp->activity->track = $reset; 973 981 remove_filter( 'comment_flood_filter', '__return_false' ); 974 982 }
Note: See TracChangeset
for help on using the changeset viewer.