From f70e62399149f852fa20d924ea5be9ae0fdae8a9 Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Fri, 23 Oct 2015 04:49:08 +0000 Subject: [PATCH] XMLRPC: Revert the changes to `WP_XMLRPC_UnitTestCase` in [35366] as they weren't required. See #34336 git-svn-id: https://develop.svn.wordpress.org/trunk@35367 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/testcase-xmlrpc.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/tests/phpunit/includes/testcase-xmlrpc.php b/tests/phpunit/includes/testcase-xmlrpc.php index 9d268ce562..38305ba1ec 100644 --- a/tests/phpunit/includes/testcase-xmlrpc.php +++ b/tests/phpunit/includes/testcase-xmlrpc.php @@ -11,14 +11,12 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase { add_filter( 'pre_option_enable_xmlrpc', '__return_true' ); - $this->myxmlrpcserver = new WP_XMLRPC_Server_UnitTestable(); + $this->myxmlrpcserver = new wp_xmlrpc_server(); } function tearDown() { remove_filter( 'pre_option_enable_xmlrpc', '__return_true' ); - $this->myxmlrpcserver->reset_failed_auth(); - $this->remove_added_uploads(); parent::tearDown(); @@ -31,10 +29,5 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase { 'role' => $role )); } -} -class WP_XMLRPC_Server_UnitTestable extends wp_xmlrpc_server { - public function reset_failed_auth() { - $this->auth_failed = false; - } } \ No newline at end of file