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(); }