Changeset 29120 for trunk/tests/phpunit/tests/ajax/MediaEdit.php
- Timestamp:
- 07/12/2014 07:08:15 AM (12 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/ajax/MediaEdit.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/ajax/MediaEdit.php
r26088 r29120 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.