WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/16/2017 04:21:00 PM (4 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-tags-controller.php

    r39371 r39913  
    3636
    3737    public static function wpTearDownAfterClass() {
     38        self::delete_user( self::$superadmin );
    3839        self::delete_user( self::$administrator );
     40        self::delete_user( self::$editor );
    3941        self::delete_user( self::$subscriber );
    4042    }
Note: See TracChangeset for help on using the changeset viewer.