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/post/getPages.php

    r35242 r35244  
    7979
    8080        // This should bump last_changed.
    81         wp_delete_post( $pages[0]->ID );
     81        wp_delete_post( $pages[0]->ID, true );
    8282        $old_changed_float = $this->_microtime_to_float( $last_changed );
    8383        $new_changed_float = $this->_microtime_to_float( wp_cache_get( 'last_changed', 'posts' ) );
Note: See TracChangeset for help on using the changeset viewer.