From 69fbde7820eebeba02b9856c3e20d7dbc222cecb Mon Sep 17 00:00:00 2001 From: Muhibul Haque Date: Thu, 5 Nov 2026 11:55:00 +0600 Subject: [PATCH] Tests: Remove redundant post type cleanup in Tests_Comment_Query. See #65893. Props devmuhib009. --- tests/phpunit/tests/comment/query.php | 6 ------ 1 file changed, 6 deletions(-) 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' ); } /**