WordPress.org

Make WordPress Core

Changeset 678 in tests


Ignore:
Timestamp:
04/12/12 17:11:45 (3 years ago)
Author:
nacin
Message:

Destroy the contents of the uploads folder in TestUploadFunctions. fixes #33.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-testcase/test_uploads.php

    r668 r678  
    1414        update_option( 'upload_url_path', '' ); 
    1515        update_option( 'uploads_use_yearmonth_folders', 1 ); 
     16    } 
     17 
     18    function tearDown() { 
     19        parent::tearDown(); 
     20 
     21        // Remove year/month folders created by wp_upload_dir(). 
     22        $this->_destroy_uploads(); 
    1623    } 
    1724 
Note: See TracChangeset for help on using the changeset viewer.