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/admin/includesPost.php

    r35242 r35244  
    55 */
    66class Tests_Admin_includesPost extends WP_UnitTestCase {
    7 
    8     function tearDown() {
    9         wp_set_current_user( 0 );
    10         parent::tearDown();
    11     }
    127
    138    function test__wp_translate_postdata_cap_checks_contributor() {
Note: See TracChangeset for help on using the changeset viewer.