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/tests/xmlrpc/wp/getUser.php

    r25394 r35244  
    1818
    1919    function tearDown() {
    20         if ( is_multisite() )
     20        if ( is_multisite() ) {
    2121            revoke_super_admin( $this->administrator_id );
    22 
     22        }
    2323        parent::tearDown();
    2424    }
Note: See TracChangeset for help on using the changeset viewer.