Wordpress/tests/phpunit/includes
Scott Taylor 653485e87f wp_upload_dir() has a (little-known?) side effect: if you call it, it will attempt to create an uploads directory for the current month. As such, tearDown() and cleanup routines have to be in sync with this behavior when deleting bogus directories used in unit tests.
Examples: if you clean up directories in a test, or a test fails before the directories are cleaned, or a test fails before the `'upload_path'` option is reset, the next call to `wp_upload_dir()` will recreate the directories you just tried to delete.

These changes ensure that `src/foo` and `/tmp/wp-unit-test` directories are deleted immediately after `wp_upload_dir()` is fired in the tests. 
 
Fixes #30513.


git-svn-id: https://develop.svn.wordpress.org/trunk@30658 602fd350-edb4-49c9-b593-d223f7449a82
2014-11-30 19:05:52 +00:00
..
bootstrap.php Exclude external-http tests when running phpunit. 2014-11-10 14:48:28 +00:00
exceptions.php
factory.php
functions.php
install.php Unset the default permalink structure after installing Multisite for automated tests. 2014-11-07 01:24:19 +00:00
mock-fs.php
mock-image-editor.php
mock-mailer.php
testcase-ajax.php
testcase-canonical.php In unit tests, use wpmu_delete_user() to delete users when is_multisite(). 2014-11-08 19:55:05 +00:00
testcase-xmlrpc.php Use remove_added_uploads() in tearDown() for XMLRPC tests 2014-11-08 20:17:17 +00:00
testcase.php wp_upload_dir() has a (little-known?) side effect: if you call it, it will attempt to create an uploads directory for the current month. As such, tearDown() and cleanup routines have to be in sync with this behavior when deleting bogus directories used in unit tests. 2014-11-30 19:05:52 +00:00
trac.php
utils.php Ensure that wpdb_exposed_methods_for_testing is available to all tests. 2014-11-23 00:46:50 +00:00
wp-profiler.php Use HTTPS URLs for trac.wordpress.org (and use core.trac.wordpress.org) 2014-09-29 13:36:38 +00:00