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

    r31622 r35244  
    2222        );
    2323        $this->post_id = wp_insert_post( $this->post_data );
    24     }
    25 
    26     function tearDown() {
    27         wp_delete_post( $this->post_id );
    28         parent::tearDown();
    2924    }
    3025
Note: See TracChangeset for help on using the changeset viewer.