From bcf340ff6581ee58ccabf3cb135f80c8dd25e7f8 Mon Sep 17 00:00:00 2001 From: Jeremy Felt Date: Sat, 8 Nov 2014 20:17:17 +0000 Subject: [PATCH] Use `remove_added_uploads()` in `tearDown()` for XMLRPC tests This cleanup avoids false test failures due to incrementing filenames in the uploads directory. Fixes #30290 git-svn-id: https://develop.svn.wordpress.org/trunk@30279 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/includes/testcase-xmlrpc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/includes/testcase-xmlrpc.php b/tests/phpunit/includes/testcase-xmlrpc.php index e82c5e134e..bf0f22aa52 100644 --- a/tests/phpunit/includes/testcase-xmlrpc.php +++ b/tests/phpunit/includes/testcase-xmlrpc.php @@ -16,6 +16,7 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase { function tearDown() { remove_filter( 'pre_option_enable_xmlrpc', '__return_true' ); + $this->remove_added_uploads(); parent::tearDown(); }