WordPress.org

Make WordPress Core


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

    r35242 r35244  
    44 */
    55class Tests_Link extends WP_UnitTestCase {
    6 
    7     function tearDown() {
    8         global $wp_rewrite;
    9         $wp_rewrite->init();
    10         parent::tearDown();
    11     }
    126
    137    function _get_pagenum_link_cb( $url ) {
Note: See TracChangeset for help on using the changeset viewer.