Changeset 29120 for trunk/tests/phpunit/tests/upload.php
- Timestamp:
- 07/12/2014 07:08:15 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/upload.php
r26552 r29120 23 23 24 24 function tearDown() { 25 $this->remove_added_uploads(); 26 25 27 parent::tearDown(); 26 27 // Remove year/month folders created by wp_upload_dir().28 $uploads = wp_upload_dir();29 foreach ( scandir( $uploads['basedir'] ) as $file )30 _rmdir( $uploads['basedir'] . '/' . $file );31 _rmdir( ABSPATH . 'foo/' );32 28 } 33 29
Note: See TracChangeset
for help on using the changeset viewer.