Changeset 47329 for branches/3.9/tests/phpunit/tests/ajax/MediaEdit.php
- Timestamp:
- 02/20/2020 05:04:42 PM (5 years ago)
- Location:
- branches/3.9
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.9
-
branches/3.9/tests/phpunit/tests/ajax/MediaEdit.php
r26088 r47329 33 33 public function tearDown() { 34 34 // Cleanup 35 foreach ( $this->_ids as $id){36 wp_delete_attachment( $id, true);35 foreach ( $this->_ids as $id ) { 36 wp_delete_attachment( $id, true ); 37 37 } 38 39 $uploads = wp_upload_dir();40 foreach ( scandir( $uploads['basedir'] ) as $file )41 _rmdir( $uploads['basedir'] . '/' . $file );42 38 43 39 parent::tearDown();
Note: See TracChangeset
for help on using the changeset viewer.