Пример #1
0
 /**
  * Tear down the test fixture.
  * Reset $_POST, remove the wp_die() override, restore error reporting
  */
 public function tearDown()
 {
     parent::tearDown();
     $_POST = array();
     $_GET = array();
     unset($GLOBALS['post']);
     unset($GLOBALS['comment']);
     remove_filter('wp_die_ajax_handler', array($this, 'getDieHandler'), 1, 1);
     remove_action('clear_auth_cookie', array($this, 'logout'));
     error_reporting($this->_error_level);
     set_current_screen('front');
 }
Пример #2
0
 function tearDown()
 {
     remove_filter('pre_option_enable_xmlrpc', '__return_true');
     $this->remove_added_uploads();
     parent::tearDown();
 }