[wp-trac] [WordPress Trac] #39399: REST API: Tests for the view or embed response data for the Users Controller are incomplete

WordPress Trac noreply at wordpress.org
Mon Dec 26 20:00:14 UTC 2016


#39399: REST API: Tests for the view or embed response data for the Users
Controller are incomplete
-------------------------+----------------------------------------
 Reporter:  rachelbaker  |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  4.8
Component:  REST API     |    Version:  4.7
 Severity:  normal       |   Keywords:  needs-patch good-first-bug
  Focuses:               |
-------------------------+----------------------------------------
 In `WP_Test_REST_Users_Controller->check_user_data()` tests for responses
 without a `context = edit` are missing assertions for the following:
 - 'email` is not an array key
 - 'registered_date' is not an array key (fix the incorrect `registered`
 key that is tested)
 - 'locale' is not an array key (See #38528)

 https://core.trac.wordpress.org/browser/trunk/tests/phpunit/tests/rest-api
 /rest-users-controller.php?annotate=blame#L2092

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39399>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list