diff --git a/tests/phpunit/tests/comment/query.php b/tests/phpunit/tests/comment/query.php index ad025ee100b5e..ec5ff219f482f 100644 --- a/tests/phpunit/tests/comment/query.php +++ b/tests/phpunit/tests/comment/query.php @@ -3268,9 +3268,6 @@ public function test_post_type_single_value() { ); $this->assertSameSets( $c2, $found ); - - _unregister_post_type( 'post-type-1' ); - _unregister_post_type( 'post-type-2' ); } /** @@ -3297,9 +3294,6 @@ public function test_post_type_singleton_array() { ); $this->assertSameSets( $c2, $found ); - - _unregister_post_type( 'post-type-1' ); - _unregister_post_type( 'post-type-2' ); } /**