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/post/thumbnails.php

    r41267 r41693  
    2121            'post_mime_type' => 'image/jpeg',
    2222        ) );
     23    }
     24
     25    public static function tearDownAfterClass() {
     26        wp_delete_post( self::$attachment_id, true );
     27        parent::tearDownAfterClass();
    2328    }
    2429
Note: See TracChangeset for help on using the changeset viewer.