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/comment-submission.php

    r35242 r35244  
    1111    }
    1212
    13     function tearDown() {
    14         wp_set_current_user( 0 );
    15         parent::tearDown();
    16     }
    17 
    1813    public function test_submitting_comment_to_invalid_post_returns_error() {
    19 
    2014        $error = 'comment_id_not_found';
    2115
Note: See TracChangeset for help on using the changeset viewer.