Changeset 9368
- Timestamp:
- 01/17/2015 03:24:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/activity/notifications.php
r9139 r9368 18 18 $this->u2 = $this->factory->user->create(); 19 19 $this->set_current_user( $this->u1 ); 20 21 /** 22 * Tests suite in WP < 4.0 does not include the WP_UnitTestCase->_restore_hooks() function 23 * When updating an activity, the following filter is fired to prevent sending more than one 24 * notification. Once we've reached this filter all at_mentions tests fails so we need to 25 * temporarly remove it and restore it in $this->tearDown() 26 */ 27 remove_filter( 'bp_activity_at_name_do_notifications', '__return_false' ); 20 28 } 21 29 … … 23 31 $this->set_current_user( $this->current_user ); 24 32 parent::tearDown(); 33 34 // Restore the filter 35 add_filter( 'bp_activity_at_name_do_notifications', '__return_false' ); 25 36 } 26 37
Note: See TracChangeset
for help on using the changeset viewer.