Make WordPress Core


Ignore:
Timestamp:
10/03/2017 12:08:16 AM (7 years ago)
Author:
johnbillion
Message:

Build/Test tools: Correctly delete attachment files used in the media and post thumbnail tests.

Props atanasangelovdev

Fixes #38264

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/media.php

    r41229 r41693  
    1919    public static function wpTearDownAfterClass() {
    2020        $GLOBALS['_wp_additional_image_sizes'] = self::$_sizes;
     21    }
     22
     23    public static function tearDownAfterClass() {
     24        wp_delete_post( self::$large_id, true );
     25        parent::tearDownAfterClass();
    2126    }
    2227
Note: See TracChangeset for help on using the changeset viewer.