public function setUp() { parent::setUp(); unset($GLOBALS['phpmailer']->mock_sent); $this->reset_post = $_POST; $this->reset_request = $_REQUEST; $this->reset_server = $_SERVER; $this->reset_cookie = $_COOKIE; add_filter('wp_redirect', '__return_false'); }
public function setUp() { parent::setUp(); $bp = buddypress(); $this->current_group = $bp->groups->current_group; $this->current_component = $bp->current_component; $this->current_user = get_current_user_id(); $this->group_admin_id = $this->factory->user->create(); $this->set_current_user($this->group_admin_id); $this->group_id = $this->factory->group->create(array('creator_id' => $this->group_admin_id)); // Activate WP Idea Stream for the group groups_update_groupmeta($this->group_id, '_group_ideastream_activate', 1); // Set current component $bp->current_component = $bp->groups->id; }
public function setUp() { parent::setUp(); add_filter('comment_flood_filter', '__return_false'); }
public function setUp() { parent::setUp(); $this->idea_id = $this->factory->idea->create(); }