From b9c3486f73bb25d2c1fbcdfae5cb47aad903f19e Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 4 Jan 2019 20:57:42 +0000 Subject: [PATCH] REST API: Fix typo when unregistering test post type. A typo when unregistering a test post type for the `WP_Test_REST_Posts_Controller` class was preventing it from being properly removed. `youseeme` now? Props rahulsprajapati. Fixes #45124. git-svn-id: https://develop.svn.wordpress.org/trunk@44394 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/rest-api/rest-posts-controller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/tests/rest-api/rest-posts-controller.php b/tests/phpunit/tests/rest-api/rest-posts-controller.php index d683924a8a..074f5437e7 100644 --- a/tests/phpunit/tests/rest-api/rest-posts-controller.php +++ b/tests/phpunit/tests/rest-api/rest-posts-controller.php @@ -4255,7 +4255,7 @@ class WP_Test_REST_Posts_Controller extends WP_Test_REST_Post_Type_Controller_Te public function tearDown() { _unregister_post_type( 'private-post' ); - _unregister_post_type( 'youseeeme' ); + _unregister_post_type( 'youseeme' ); if ( isset( $this->attachment_id ) ) { $this->remove_added_uploads(); }