mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-30 23:30:05 +00:00
REST API: Improve test coverage of single user endpoint for public data.
Add test coverage for requests of a single user resource for authors of post types registered as: - public = true, show_in_rest = true: success without auth. - public = true, show_in_rest = false: fail without auth. - public = false, show_in_rest = true: success without auth. - public = false, show_in_rest = false: fail without auth. See #38878. Fixes #39546. git-svn-id: https://develop.svn.wordpress.org/trunk@39913 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -76,7 +76,9 @@ class WP_Test_REST_Comments_Controller extends WP_Test_REST_Controller_Testcase
|
||||
}
|
||||
|
||||
public static function wpTearDownAfterClass() {
|
||||
self::delete_user( self::$superadmin_id );
|
||||
self::delete_user( self::$admin_id );
|
||||
self::delete_user( self::$editor_id );
|
||||
self::delete_user( self::$subscriber_id );
|
||||
self::delete_user( self::$author_id );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user