WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/17/2015 07:24:20 PM (6 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/includes/testcase-canonical.php

    r35242 r35244  
    135135     */
    136136    public static function delete_shared_fixtures() {
    137         if ( is_multisite() ) {
    138             wpmu_delete_user( self::$author_id );
    139         } else {
    140             wp_delete_user( self::$author_id );
    141         }
     137        self::delete_user( self::$author_id );
    142138
    143139        foreach ( self::$post_ids as $pid ) {
Note: See TracChangeset for help on using the changeset viewer.