From 9fc35fb72e09996ef9d4b49d88e5a96c840d2f3a Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 26 Nov 2026 15:46:43 +0000 Subject: [PATCH 1/3] Tests: Remove redundant taxonomy cleanup in Tests_Query_DateQuery::test_date_query_with_taxonomy_join() --- tests/phpunit/tests/query/dateQuery.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/phpunit/tests/query/dateQuery.php b/tests/phpunit/tests/query/dateQuery.php index a43e19f2b69d2..13961b48c2cb3 100644 --- a/tests/phpunit/tests/query/dateQuery.php +++ b/tests/phpunit/tests/query/dateQuery.php @@ -990,8 +990,6 @@ public function test_date_query_with_taxonomy_join() { ) ); - _unregister_taxonomy( 'foo' ); - $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); } From 978a6a61a4ee9a0b276238fbd6a0b35597a80548 Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 26 Nov 2026 15:52:51 +0000 Subject: [PATCH 2/3] Tests: Remove redundant post type cleanup in wpRestIconCollectionsController --- tests/phpunit/tests/icons/wpRestIconCollectionsController.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/phpunit/tests/icons/wpRestIconCollectionsController.php b/tests/phpunit/tests/icons/wpRestIconCollectionsController.php index f65bf44c3a89f..fd8539fb29a41 100644 --- a/tests/phpunit/tests/icons/wpRestIconCollectionsController.php +++ b/tests/phpunit/tests/icons/wpRestIconCollectionsController.php @@ -48,10 +48,6 @@ public function tear_down() { } } - if ( post_type_exists( 'rest_icon_cpt' ) ) { - unregister_post_type( 'rest_icon_cpt' ); - } - parent::tear_down(); } From 37376ce269ef17d3af51a22643ead4b5c1cc872f Mon Sep 17 00:00:00 2001 From: shail-mehta Date: Thu, 26 Nov 2026 15:58:21 +0000 Subject: [PATCH 3/3] Revert "Tests: Remove redundant taxonomy cleanup in Tests_Query_DateQuery::test_date_query_with_taxonomy_join()" This reverts commit 9fc35fb72e09996ef9d4b49d88e5a96c840d2f3a. --- tests/phpunit/tests/query/dateQuery.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/phpunit/tests/query/dateQuery.php b/tests/phpunit/tests/query/dateQuery.php index 13961b48c2cb3..a43e19f2b69d2 100644 --- a/tests/phpunit/tests/query/dateQuery.php +++ b/tests/phpunit/tests/query/dateQuery.php @@ -990,6 +990,8 @@ public function test_date_query_with_taxonomy_join() { ) ); + _unregister_taxonomy( 'foo' ); + $this->assertSame( array( $p1 ), wp_list_pluck( $posts, 'ID' ) ); }