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/Autosave.php

    r35242 r35244  
    3939        $post_id = self::factory()->post->create( array( 'post_status' => 'draft' ) );
    4040        $this->_post = get_post( $post_id );
    41     }
    42 
    43     /**
    44      * Tear down the test fixture.
    45      * Reset the current user
    46      */
    47     public function tearDown() {
    48         wp_set_current_user( 0 );
    49         parent::tearDown();
    5041    }
    5142
Note: See TracChangeset for help on using the changeset viewer.