public function tearDown()
 {
     // Remove our temporary spy server
     $GLOBALS['wp_rest_server'] = null;
     unset($_REQUEST['_wpnonce']);
     parent::tearDown();
 }
 public function tearDown()
 {
     parent::tearDown();
     /** @var WP_REST_Server $wp_rest_server */
     global $wp_rest_server;
     $wp_rest_server = null;
 }
 public function tearDown()
 {
     parent::tearDown();
     remove_filter('rest_url', array($this, 'test_rest_url_for_leading_slash'), 10, 2);
     /** @var WP_REST_Server $wp_rest_server */
     global $wp_rest_server;
     $wp_rest_server = null;
 }
 public function tearDown()
 {
     // Remove our temporary spy server
     $GLOBALS['wp_rest_server'] = null;
     parent::tearDown();
 }