Changeset 677 in tests for wp-testlib/base.php
- Timestamp:
- 04/12/2012 05:02:12 PM (14 years ago)
- File:
-
- 1 edited
-
wp-testlib/base.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-testlib/base.php
r675 r677 409 409 } 410 410 411 function _destroy_uploads() { 412 $uploads = wp_upload_dir(); 413 foreach ( scandir( $uploads['basedir'] ) as $file ) 414 _rmdir( $uploads['basedir'] . '/' . $file ); 415 } 416 411 417 /** 412 418 * Checks if track ticket #$ticket_id is resolved … … 647 653 wp_ob_end_flush_all(); 648 654 parent::tearDown(); 649 // delete any users that were created during tests655 // delete any users and uploads that were created during tests 650 656 $this->_destroy_users(); 657 $this->_destroy_uploads(); 651 658 652 659 remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
Note: See TracChangeset
for help on using the changeset viewer.