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
This commit is contained in:
parent
608084a9cc
commit
bcf340ff65
|
@ -16,6 +16,7 @@ class WP_XMLRPC_UnitTestCase extends WP_UnitTestCase {
|
||||||
|
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
|
remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
|
||||||
|
$this->remove_added_uploads();
|
||||||
|
|
||||||
parent::tearDown();
|
parent::tearDown();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue