Make WordPress Core


Ignore:
Timestamp:
10/17/2015 07:24:20 PM (9 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/ajax/CustomizeMenus.php

    r35242 r35244  
    2727        $this->wp_customize = new WP_Customize_Manager();
    2828        $wp_customize = $this->wp_customize;
    29     }
    30 
    31     /**
    32      * Tear down the test fixture.
    33      */
    34     public function tearDown() {
    35         wp_set_current_user( 0 );
    36         parent::tearDown();
    3729    }
    3830
Note: See TracChangeset for help on using the changeset viewer.