From 8b28f459450eeb818ded3bb1238716883c99dc6d Mon Sep 17 00:00:00 2001 From: Muhibul Haque Date: Wed, 4 Nov 2026 12:53:58 +0600 Subject: [PATCH] Tests: Clean up cpt_template_null in WP_Test_REST_Post_Types_Controller. See #65893. Props devmuhib009. --- tests/phpunit/tests/rest-api/rest-post-types-controller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/phpunit/tests/rest-api/rest-post-types-controller.php b/tests/phpunit/tests/rest-api/rest-post-types-controller.php index 69f312a8eb3ed..ae8938c061d2c 100644 --- a/tests/phpunit/tests/rest-api/rest-post-types-controller.php +++ b/tests/phpunit/tests/rest-api/rest-post-types-controller.php @@ -12,6 +12,7 @@ class WP_Test_REST_Post_Types_Controller extends WP_Test_REST_Controller_Testcas public function tear_down() { unregister_post_type( 'cpt' ); unregister_post_type( 'cpt_template' ); + unregister_post_type( 'cpt_template_null' ); parent::tear_down(); }