Fix set up/tear down of post types in comment query test.
Introduced in [31015]. Props kouratoras. Fixes #35633. git-svn-id: https://develop.svn.wordpress.org/trunk@36415 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
304ab7c0e4
commit
7c1854aeb0
@ -1686,6 +1686,7 @@ class Tests_Comment_Query extends WP_UnitTestCase {
|
||||
public function test_post_type_array() {
|
||||
register_post_type( 'post-type-1' );
|
||||
register_post_type( 'post-type-2' );
|
||||
register_post_type( 'post-type-3' );
|
||||
|
||||
$p1 = self::factory()->post->create( array( 'post_type' => 'post-type-1' ) );
|
||||
$p2 = self::factory()->post->create( array( 'post_type' => 'post-type-2' ) );
|
||||
@ -1702,9 +1703,6 @@ class Tests_Comment_Query extends WP_UnitTestCase {
|
||||
) );
|
||||
|
||||
$this->assertEqualSets( array_merge( $c1, $c3 ), $found );
|
||||
|
||||
_unregister_post_type( 'post-type-1' );
|
||||
_unregister_post_type( 'post-type-2' );
|
||||
}
|
||||
|
||||
public function test_post_name_single_value() {
|
||||
|
Loading…
Reference in New Issue
Block a user