Changeset 10545 for trunk/tests/phpunit/testcases/blogs/filters.php
- Timestamp:
- 02/07/2016 04:55:04 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/filters.php
r9837 r10545 10 10 public function setUp() { 11 11 parent::setUp(); 12 13 $bp = buddypress();14 15 $this->activity_actions = $bp->activity->actions;16 $bp->activity->actions = new stdClass();17 12 18 13 $this->custom_post_types = array( 'using_old_filter' ); … … 36 31 remove_filter( 'bp_blogs_record_post_post_types', array( $this, 'filter_post_types'), 10, 1 ); 37 32 remove_filter( 'bp_blogs_record_comment_post_types', array( $this, 'filter_post_types'), 10, 1 ); 38 39 // Reset activity actions40 $bp->activity->actions = $this->activity_actions;41 $bp->activity->track = array();42 33 } 43 34 … … 65 56 /** 66 57 * @goup bp_blogs_record_comment 58 * @group post_type_comment_activities 67 59 */ 68 60 public function test_bp_blogs_record_comment() { … … 90 82 /** 91 83 * @goup bp_blogs_record_comment_sync_activity_comment 84 * @group post_type_comment_activities 92 85 */ 93 86 public function test_bp_blogs_record_comment_sync_activity_comment() {
Note: See TracChangeset
for help on using the changeset viewer.