Make WordPress Core


Ignore:
Timestamp:
10/17/2015 07:24:20 PM (8 years ago)
Author:
wonderboymusic
Message:

Unit Tests: WP_UnitTest_Generator_Sequence needs a static incrementer - otherwise, it assumes every test class is a reset, which it no longer is (it is now static).

While we're at it, remove unnecessary tearDown() code.

See #30017, #33968.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/thumbnails.php

    r35194 r35244  
    1818
    1919    public static function wpTearDownAfterClass() {
    20         wp_delete_post( self::$post->ID );
    21         wp_delete_attachment( self::$attachment_id );
     20        wp_delete_post( self::$post->ID, true );
     21        wp_delete_attachment( self::$attachment_id, true );
    2222    }
    2323
Note: See TracChangeset for help on using the changeset viewer.