Make WordPress Core


Ignore:
Timestamp:
01/16/2017 04:21:00 PM (8 years ago)
Author:
jnylen0
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/rest-comments-controller.php

    r39597 r39913  
    7777
    7878    public static function wpTearDownAfterClass() {
     79        self::delete_user( self::$superadmin_id );
    7980        self::delete_user( self::$admin_id );
     81        self::delete_user( self::$editor_id );
    8082        self::delete_user( self::$subscriber_id );
    8183        self::delete_user( self::$author_id );
Note: See TracChangeset for help on using the changeset viewer.