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/user/countUserPosts.php

    r35224 r35244  
    2828            'post_type'   => 'wptests_pt',
    2929        ) ) );
    30         self::$post_ids = array_merge( self::$post_ids, $factory->post->create_many( 1, array(
     30       
     31        self::$post_ids[] = $factory->post->create( array(
    3132            'post_author' => 12345,
    3233            'post_type'   => 'wptests_pt',
    33         ) ) );
     34        ) );
    3435    }
    3536
Note: See TracChangeset for help on using the changeset viewer.