Make WordPress Core

Changeset 36415


Ignore:
Timestamp:
01/27/2016 11:12:07 PM (9 years ago)
Author:
boonebgorges
Message:

Fix set up/tear down of post types in comment query test.

Introduced in [31015].

Props kouratoras.
Fixes #35633.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/query.php

    r36381 r36415  
    16871687        register_post_type( 'post-type-1' );
    16881688        register_post_type( 'post-type-2' );
     1689        register_post_type( 'post-type-3' );
    16891690
    16901691        $p1 = self::factory()->post->create( array( 'post_type' => 'post-type-1' ) );
     
    17031704
    17041705        $this->assertEqualSets( array_merge( $c1, $c3 ), $found );
    1705 
    1706         _unregister_post_type( 'post-type-1' );
    1707         _unregister_post_type( 'post-type-2' );
    17081706    }
    17091707
Note: See TracChangeset for help on using the changeset viewer.