Changeset 10868
- Timestamp:
- 06/02/2016 02:14:54 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/blogs/activity.php
r10854 r10868 704 704 ) ); 705 705 706 // Update 'Comment blacklist' section to include some words we want to block.707 update_option( 'blacklist_keys', 'yolo');706 // Set activity item to spam. 707 add_action( 'bp_activity_before_save', array( $this, 'set_activity_to_spam' ) ); 708 708 709 709 // Create spammed activity comment. … … 723 723 // Reset. 724 724 remove_filter( 'bp_disable_blogforum_comments', '__return_false' ); 725 update_option( 'blacklist_keys', '');725 remove_action( 'bp_activity_before_save', array( $this, 'set_activity_to_spam' ) ); 726 726 727 727 $this->set_current_user( $old_user ); … … 754 754 return $a; 755 755 } 756 757 /** 758 * Explicitly set activity to spam. 759 */ 760 public function set_activity_to_spam( $activity ) { 761 $activity->is_spam = 1; 762 } 756 763 }
Note: See TracChangeset
for help on using the changeset viewer.