Ejemplo n.º 1
0
 public function tearDown()
 {
     $this->set_current_user($this->current_user);
     parent::tearDown();
     // Restore the filter
     add_filter('bp_activity_at_name_do_notifications', '__return_false');
 }
 public function tearDown()
 {
     parent::tearDown();
     $this->group = '';
     $this->fields = array();
     $this->users = array();
 }
 public function tearDown()
 {
     $this->set_current_user($this->current_user);
     if ($this->groups_template) {
         $GLOBALS['groups_template'] = $this->groups_template;
     }
     parent::tearDown();
 }
Ejemplo n.º 4
0
 function tearDown()
 {
     parent::tearDown();
     $bp = buddypress();
     _unregister_post_type('using_old_filter');
     remove_filter('bp_blogs_record_post_post_types', array($this, 'filter_post_types'), 10);
     remove_filter('bp_blogs_record_comment_post_types', array($this, 'filter_post_types'), 10);
 }
 public function tearDown()
 {
     parent::tearDown();
     remove_filter('bp_attachment_upload_overrides', array($this, 'filter_overrides'), 10, 1);
     remove_filter('upload_dir', array($this, 'filter_upload_dir'), 20, 1);
     $this->upload_results = array();
     $this->image_file = '';
 }
Ejemplo n.º 6
0
 public function tearDown()
 {
     if (is_multisite()) {
         update_site_option('registration', $this->signup_allowed);
     } else {
         bp_update_option('users_can_register', $this->signup_allowed);
     }
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     remove_filter('bp_attachment_upload_overrides', array($this, 'filter_overrides'), 10);
     remove_filter('upload_dir', array($this, 'filter_upload_dir'), 20);
     add_filter('bp_attachments_cover_image_upload_dir', array($this, 'filter_cover_image_dir'), 10, 2);
     $this->upload_results = array();
     $this->image_file = '';
     $this->original_upload_dir = array();
 }
Ejemplo n.º 8
0
 function tearDown()
 {
     parent::tearDown();
     $bp = buddypress();
     _unregister_post_type('using_old_filter');
     remove_filter('bp_blogs_record_post_post_types', array($this, 'filter_post_types'), 10, 1);
     remove_filter('bp_blogs_record_comment_post_types', array($this, 'filter_post_types'), 10, 1);
     // Reset activity actions
     $bp->activity->actions = $this->activity_actions;
     $bp->activity->track = array();
 }
 public function tearDown()
 {
     if ('' !== $this->http_host) {
         $_SERVER['HTTP_HOST'] = $this->http_host;
     }
     if ('' !== $this->server_port) {
         $_SERVER['SERVER_PORT'] = $this->server_port;
     }
     if ('' !== $this->request_uri) {
         $_SERVER['REQUEST_URI'] = $this->request_uri;
     }
     parent::tearDown();
 }
Ejemplo n.º 10
0
 public function tearDown()
 {
     if (isset($_REQUEST['_wp_http_referer'])) {
         unset($_REQUEST['_wp_http_referer']);
     }
     if (isset($_SERVER['HTTP_REFERER'])) {
         unset($_SERVER['HTTP_REFERER']);
     }
     if ($this->_wp_http_referer) {
         $_REQUEST['_wp_http_referer'] = $this->_wp_http_referer;
     }
     if ($this->http_referer) {
         $_SERVER['HTTP_REFERER'] = $this->http_referer;
     }
     parent::tearDown();
 }
Ejemplo n.º 11
0
 public function tearDown()
 {
     parent::tearDown();
     $dir = buddydrive()->upload_dir;
     $d = glob($dir . '/*');
     if (!empty($d)) {
         foreach ($d as $file) {
             @unlink($file);
         }
     }
     if (file_exists($dir . '/.htaccess')) {
         @unlink($dir . '/.htaccess');
     }
     if (is_dir($dir)) {
         rmdir($dir);
     }
 }
Ejemplo n.º 12
0
 public function tearDown()
 {
     parent::tearDown();
     $this->set_current_user($this->old_current_user);
 }
Ejemplo n.º 13
0
 public function tearDown()
 {
     buddypress()->members->types = array();
     parent::tearDown();
 }
Ejemplo n.º 14
0
 public function tearDown()
 {
     parent::tearDown();
     $this->set_current_user(self::$old_user_id);
 }
Ejemplo n.º 15
0
 public function tearDown()
 {
     parent::tearDown();
     $this->set_current_user($this->old_current_user);
     remove_filter('bp_core_enable_root_profiles', '__return_true');
 }
Ejemplo n.º 16
0
 public function tearDown()
 {
     buddypress()->bp_nav = $this->bp_nav;
     buddypress()->bp_options_nav = $this->bp_options_nav;
     parent::tearDown();
 }