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
This commit is contained in:
Jonathan Desrosiers 2019-01-04 20:57:42 +00:00
parent 3e6b45360d
commit b9c3486f73
1 changed files with 1 additions and 1 deletions

View File

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